Hot answers tagged


I think you're on the right track with AtomicLong, but you'd have to run a scan operation each time your app starts to determine which value to start at. You'd want to test this to ensure it doesn't degrade performance too much. Another option is a metadata item. You could create an additional table for this, or you could add an item to your existing table ...

Only top voted, non community-wiki answers of a minimum length are eligible