开发者

Why are the query parameters for many websites(MySQL) very cryptic long integers? [closed]

开发者 https://www.devze.com 2023-04-05 16:22 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers.开发者_开发百科
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_开发百科

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 8 years ago.

Improve this question

Consider this URL http://twitter.com/#!/sravfeyn/status/114003158891634689 , why is the query integer so long, if it's a primary key in MySQL data table, and can be started from zero and be auto-incremented? Why should one implement his/her website's queries cryptic like this?Any security reasons?


It's not for security reasons, it's because there are so many tweets that using an auto increment ID field has reached it's maximum unsigned integer length and may crash some apps built for twitter.

The status ID's are now made up of timestamp and other details.

http://techcrunch.com/2009/06/12/all-hell-may-break-loose-on-twitter-in-2-hours/

http://engineering.twitter.com/2010/06/announcing-snowflake.html


There is no lengthening of the number; it is the actual post number. Twitter has millions of post a days so this isn't much of a surprise,.

As you can see, there are also double-digit posts on twitter. I think this is the first one.

0

精彩评论

暂无评论...
验证码 换一张
取 消