, , , 100 000-500 000 , . created_at updated_at.
, - . , , , . (100 ), , , .
, , , , , . , , , .
One of the best reasons to have a primary key is to give the strings a natural order based on the order in which they were inserted. If you want to get the last 100 (or first 100) rows, it is very simple and fast if you have a primary key with automatic increment in the table.
Adding columns inserted_atand updated_atcan provide similar usefulness in terms of samples on the basis of the date range data. Again, if the number of rows is not very large, it might be worth evaluating them.
source
share