Interesting approach @arcanemachine !
A word of caution about retrieving the last value - there’s an important concurrency consideration to keep in mind. The get_next_available_id approach can lead to multiple processes request an ID simultaneously and get the same ID.


















