Reputation: 1239
Is there a definition of the length of the etag
returned by the Google People API?
We store the etag
returned and we recently started receiving etag
values greater than the length of the database column that we had allocated. We modified the table to accommodate these new larger etag
s but it raised the question of what to make the maximum size of the column.
I am wondering if there is any documentation where Google define the length of the etag
field or explain the mechanism they use to generate it?
On a related note, is there anywhere that would have forewarned us about this change? I've browsed the People API documentation and searched for release notes, but I do not see any mention of this changing.
Upvotes: 0
Views: 275
Reputation: 2140
To answer your question what to make the maximum size of the column
, there's really no way you can determine it, as an ETag can be of any length in theory so it would be best if you have a way to not set/limit the length. The method by which ETag values are generated is not specified. Typically, the ETag value is a hash of the content, a hash of the last modification timestamp, or just a revision number.
Refer to other links below for more information:
Upvotes: 1