mysql - Search for a recent added keywords -


say if there table has 100 million records.. more , more data keeps getting updated , then. mission search added keyword "srinu" table each , every 30 seconds , display it.

what efficient way ?

no need write code. give views/thoughts on this.

this rather abstract question , have lot of opinionated answers.

what criteria "recently added"?

if needed quick query see records added within last 30 seconds create trigger , secondary lookup table after update , after insert insert recently_added;

and create event delete recently_added datetime field less than 30 seconds ago , run every 30 seconds step can moved trigger , criteria added select instead

this way select * recently_added if there no records found know no records updated within last 30 seconds. otherwise of keywords updated within last 30 seconds listed


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -