Or rather, the positives outweigh the negatives?
The goal is to get the N most recent entries.
pros:
minuses:
Thoughts?
Due to database transactions, several sessions can make transactions at different times, you will find that it is not always ordered by time.
Another con, without creating an index on created_on, you forgot to mention:
created_on
, .
, , . . created_at, .
, , , .
If you use a surrogate key to determine the sequence and manage the business logic, you also undermine the main advantage of having a surrogate key in the first place. The surrogate is supposed to have no commercial value, so for example, you can easily update / redistribute values during database maintenance and schema changes.
Source: https://habr.com/ru/post/1792402/More articles:Git branch structure for client and server - gitUsing view to pre-sort selection in mysql? - sqlAn alternative to CREATING A VIRTUAL TABLE IF IT DOES NOT EXIST - cEmail body is not displayed after sending from iPhone via code - emailPrologue - and =. Why don't they work the same as logical constraints? - bitwise-operatorsПрямой поток веб-камеры → сервер → удаленные зрители - video-streamingКогда нам действительно нужно вызывать родительский переопределенный метод из основного метода? - overrideConvert C ++ time_t to Delphi TDateTime - c ++what is differential i / o - fpgafacebook graph api & php sdk, delete events! - phpAll Articles