Hello,

Yes, thanks, sure I've read it. I was curious about actual algorithm.
Because it looks like hash or something like that, but, again hash
functions of two different modified values potentially can be the
same.
Because of delay that has place to be when I update a contact via api
(as you said in another thread it may take up to one minute) I have to
compare etags to know if a contact was really updated since some time
or it is just last version of it. So I decided to save etags in our
database for every contact to compare them. And I wonder if I can make
them shorter (they are pretty big just to distinguish two versions
from each other). Trying to calculate what if I saved 5 first symbols,
for example))... what would be the possibility of having them equal
for different versions. That's why I was asking about the algorithm.

Thanks for the answer.

On 20 ноя, 17:04, "Julian (Google)" <[email protected]> wrote:
> Hi,
>
> The ETag is calculated using the last modified time, I do not have the
> specifics of the algorithm. It is safe to assume that is different for
> the same object, but not for different objects.
>
> We have some more information 
> here:http://code.google.com/apis/gdata/docs/2.0/reference.html#ResourceVer...
>
> Cheers,
> Julian
>
> On Nov 20, 5:59 am, lcf <[email protected]> wrote:
>
>
>
> > Hello!
>
> > Probably wrong place for asking... sorry if so. I'm interested - how
> > exactly etags are calculated?
> > Are they just random strings? I thought they were not because in that
> > case, theoretically speaking, version 1 etag could be equal to version
> > 3 etag (of some contact entry for example).
> > So, I decided that all etags are different (that also means - not
> > random) and here is my question - how are they calculated, what's the
> > algorithm?
>
> > Thanks.

--

You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=.


Reply via email to