Search code examples
javadatabasexodus

Using database cursor instead of skip and limit


I'm not sure if the Cursor defined in this Xodus ticket is the typical database cursor or not, but is there a way to support database cursors with Xodus?

For example, instead of the normal skip/limit approach, a cursor can be used to resume retrieval of the results.

Is there a way to use a cursor instead of skip and limit with Xodus?


Solution

  • In the Environments API there are aleady cursors. The ticket mentioned is about so called persistent cursors in the EntityStore API that could survive through changing transaction and even EntityStore close/open. It's very unlikely that this feature would ever be implemented.