I'm re-writing performance critical function in my application, and I need a good way to store record id.
Before that, I was storing the id to file, for that I had to lock file, write data and than flush it. This takes too long.
Are there any better ways to persist the record id?