Ive tried inserting many objects and find that it is slow. What is going on ?
You are likely using the MaxPoidGenerator to create the identity for the new objects. This makes a database call to get the next available id. This is the default because it works on ALL RDBMS. We recommend that you replace this with an AutoIncrement or Sequence based identity generator depending on your RDBMS. Please see the Identity Generation Guide for details of these and how to select them in your Meta-Data. The SequenceTablePoidGenerator is recommended since it will work on all databases.