What is the meaning of the integer at the end of a Saves list URL? For example, my first Saves list has the following URL:
https://stackoverflow.com/users/saves/10794031/75
Why is the last number 75
?
What is the meaning of the integer at the end of a Saves list URL? For example, my first Saves list has the following URL:
https://stackoverflow.com/users/saves/10794031/75
Why is the last number 75
?
An educated guess, based on some tests I did yesterday and the way most other things (posts, users, comments) are modeled: they are stored in a table (let's say Saves
) with an automatically incremented primary key (let's say Id
). The number you see is simply that ID.
Also, wouldn't it be more elegant to keep an incremental integer per user (like a dependent DB key instead of an ever increasing site-wide long int)?
More elegant with regards to the end result, perhaps, but certainly not more elegant when it comes to the code. There's nothing simpler than let the database generate a unique ID, and you don't need to maintain code which you don't have to write ...
In other words, 75 simply means it's the 75th list created by all users together on the site, just like the user ID 10794031 means you're the 10794031st user on the site. Some older lists may already have been deleted, of course, so the total number of lists may be lower.
Note that the default 'For later' list does not have an ID, only custom lists get an ID. And the 'All saves' page does not have an ID either, but the keyword all
instead of a number in the URL.