[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] finding a suitable record id for appendrecord



Brian Johnson:
> I keep running into the situation where I need to know the record id of a
> new record I'm adding (to track it for syncing to another data source)
> 
> But I'm starting to get into a conduit where I realistically could very
> quickly get to uppermost id number (around 32000 isn't it - it was post

Actually the record ID is three bytes unsigned: 0xffffff is the largest
record ID, decimal 16777215. You probably have some space for adding new
ones... All applications I have seen just peek at the largest ID and add
on top of that number.

If the database has a valid AppInfo block this already holds the largest
used ID: $appinfo->{lastUniqueID}.

Regards,
Helge

-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.