|
Hey all,
I did a test with my classes. I created a class and a subclass and inserted 10000 off them in my database.
The class uses as generator uid.hex.
this takes 59 seconds (average) so i'm very happy, thats very fast.
but now i want the code to use a long, so i change the field in the java object to long and change the mapping to use a long and as generator increment.
The same 10000 objects take an average off 343 seconds?
I changed the config so i would see the sql and changed the amount off objets to 10.
The queries are the same number, i mean there are as many sqlqueries to the db in the test with uid.hex as with the long.
Is this known, do i need to tweak something? Did i forget something (like don't use long, but Long)
Och yeah, my database is pgsql.
greetings
|