Chris Holmes ha scritto:
>  One question, on the spec itself, can we specify the behavior per
>  featureType?  Or do we only have the option to set globally?

Capabilities are specified globally, not per type.

>  If we have diverse datastores, then what do we do?  Aggregate and
>  only report what all are able to do?  Perhaps we need a spec change,
>  or at least need to ask the WFS list what others are doing?

Spec change, but I'm going to ask on the OGC WFS lists as well.

>  One other thing to note, our MaxIncFIDMapper actually will perform
>  fine with UseExisting _and_ GenerateNew.  And would work with
>  ReplaceDuplicate without _too_ much work, and wouldn't be super
>  dangerous since we're doing things outside of the database, not
>  messing with serial indexes and the like.  (We just do a
>  max(columname) on the fid column to determine what the next fid
>  should be).

MaxIncFIDMapper is the most ugly and miserable of FID mappers
because there's no guarantee that FIDs generated by it are really
unique in a concurrent access situation where the transaction isolation
level is lower than SERIALIZABLE (and that level would kill performance
big time). You can think of it as a toy, but I would never use it in 
production.
Unless I'm missing something that can make it work properly?

As for not having problems with it because there are no sequences around,
hmm... I don't get it. If I provide you a value that's near the long 
values overflow,
that +1 may trigger an overflow error, or if you're lucky, make it turn 
to the other
side of the integer range (-maxint). Say I do it twice, first to make it 
round, then
to reset it to 0, and then let the dance of duplicate primary keys begin.

MaxIncFIDMapper is designed to "work" in a "GenerateNew" fashion, trying to
make it work following a different principle is a way to look for 
trouble IMHO.

Cheers
Andrea

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to