Python Forum
creating a range of unique & sequential ID's in a database while handling concurency
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
creating a range of unique & sequential ID's in a database while handling concurency
#1
I am in the planning phase of a project to create an app. I am wondering if anyone has any general strategy for what I outline below.

I have a need for an application that will create a range of unique and sequential numbers. The numbers have to be unique, and they have to sequential.

For instance if 6548 was the last ID created and a user requests 20 numbers, and the system would spit out something like: "Created numbers 6549 - 6568".

Of course there are more things in the model than just these numbers, but my big concern is how to handle multiple users requesting ranges of numbers at the same time and ensuring that they get a unique and sequential range of Id's.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to scrape only unique values and save it into database Prince_Bhatia 0 2,973 Jun-08-2018, 06:59 AM
Last Post: Prince_Bhatia

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020