php - Using Memcached for Realtime Data Tables -
i have many data tables in app (i.e. tables of data update @ moment, of time display same data).
some of these tables have intensive queries behind them, every time user comes page runs query again if there no new updates.
this when thought memcached ideal speed performance users unsure of how implement quite new idea of caching.
how mysql tell memcached results query have changed , table shouldn't come cache next time loaded , instead come database , consequently update cache?
also, think better have data object table update new rows, have no idea process if has ideas can share use case appreciated.
maybe option, log when there update. make table, called update. should have 2 columns, priority , date time.
every time refresh page, check, via mysql, if specific priority, date-time has changed. if so, know need update data on page. if not, fine current data.
for work, of course have update update table, every database change. can done manually or via mysql triggers.
Comments
Post a Comment