My JDO application does inserts with binds, and then subsequently does bulk deletes using this code:
pm.currentTransaction().begin(); Extent<ABC> extent = pm.getExtent(ABC.class, true); Query q = pm.newQuery(extent); long deletedCount = q.deletePersistentAll(); pm.currentTransaction().commit();
The volumes of items could be large so I am concerned that I will get a build-up of "orphan" bindings (bookmarks). Instead of the above code, I could iterate over the Extent and delete the entities and the bindings one at a time, but this seems less efficient.
Any views on this - thanks!