[mapguide-users] How to get an auto-generated IdafterInsertFeature ?

Jason Birch Jason.Birch at nanaimo.ca
Tue Oct 9 14:33:36 EDT 2007


I think that this might cause problems in high-concurrency situations:

user a: selects max ID (23)
user b: selects max ID (23)
users a and b insert features
user a: selects max ID (25)
user b: selects max ID (25)

??

Jason

-----Original Message-----
From: Dave Wilson
Subject: RE: [mapguide-users] How to get an auto-generated
IdafterInsertFeature ?

Another approach might be to select the Max Id before the insert and
select the Max Id after the insert. I don't believe the Id's get
assigned such that they will use existing gaps (from deleted features)
so the new Id should always be higher correct?

Dave


More information about the mapguide-users mailing list