Note that there are some explanatory texts on larger screens.

plurals
  1. USsmartcity
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. CO@RaymondNijland I'm only updating records to change their status. They are transactional rows which when expired they still serve statistics/billing purposes. My understanding of MCC is that it's used to create different versions of the same row, but in my case the row changes (permanently) to a status where it's not used by the application anymore (besides back-office sporadic reading access)
      singulars
    2. CO@BurhanKhalid Objective is to speeding the reading of non-expired rows. By BOL I mean a variable to check whether is expired/non expired, but could also be a tinyINT if the type of status of the row can also be a third one. THe reason why I wrote BOl is that I have little understanding on the performance of indexing based on the variable type, and I guessed with a boolean would be faster. There is no current table size as the app is being developed. As per your last line: why should I make the query run through the whole table, expired rows will be much more than a few thousands.
      singulars
    3. COGreat answer, I will test it and report back. Does this mean that I don't even need the timestamp column in the table? I knew about the scheduler, only was wondering whether it heavier that a cron job, but considering that mysql has current_timestamp and timestampdiff function yes, it seems the way to go.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload