select query returns different results for the same query

房东的猫 提交于 2021-02-08 11:31:54

问题


i have a table in my db called events here is some info about the table

106,528 ROWS  -     InnoDB  -   utf8mb4_unicode_ci -    35.1 MiB    

in this table i store sport match events

today i've noticed something weird , when i run a select query i get something different time to time

this is the query , basically looking for the matches without the result

select * from `events` where `stat_forms` > '0' and ((`result_added` = '0' and `archived` = '0' and `start_time` < '1530901263') or `result_error_flag` != '0') and `events`.`deleted_at` is null limit 20 offset 0 

here i ran these 2 query withing a minute

and couple of second later

i keep running the same query and results keeps changing ... not fast every time but every couple of minutes 1 row is added or missing ! im pretty sure something s wrong with the table or server .... just dont know what and where to look

here is the table structure

来源:https://stackoverflow.com/questions/51218099/select-query-returns-different-results-for-the-same-query

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!