Proxool Developer |
|
Joined: Tue Aug 26, 2003 10:42 am Posts: 373 Location: Belgium
|
Depending on your database capabilities, the native ID generation strategy will use:
- the IdentityGenerator where supported (eg. SQL Server);
- the SequenceGenerator where supported (eg. Oracle);
- otherwise the TableHiloGenerator.
We are required to support both SQL Server (development) and Oracle (production) databases - so the native strategy might be a good choice.
Unfortunately, this strategy is not very efficient since the Identity/Sequence-Generator require at least 2 SQL queries by Insert (and we have lots of inserts).
We are wondering if an additional nativehilo strategy could be defined. It would behave as follows:
- use the SeqHiloGenerator where supported (eg. Oracle);
- otherwise the TableHiloGenerator.
Does it make sense ?
(I'm actually wondering if the SeqHiloGenerator will give any additional benefit compared to the TableHilo - we could use the latest in all cases anyway).
|
|