Hi,
I noticed that simple persist operations on a local web app (running from Eclipse) is VERY slow.
For example, if I'm persisting an object in a servlet, it takes a very long time for it to actually persist in the DB.
I'm persisting objects with the following code.
public static <T> T makePersistent(T object) {
PersistenceManager manager = getPersistenceManager();
try {
return manager.makePersistent(object);
} finally {
manager.close();
}
}
When this code is called from a servlet. most of the time by the time the servlet ends and redirects to my page, the object is still not in the database.
Sometimes the object is never persisted in the database.
If I debug my application, and give it more time on the thread by suspending a breakpoint, the object eventually does get persisted. But it takes several seconds.
I've experienced this on multiple machines, and multiple operating systems.
Is this a known issue and is there some kind of workaround for this ?
Regards,
Davy