caching - How to detect stale data in search result with paging? -
caching - How to detect stale data in search result with paging? -
let's have rest api search: /items?querystring=foo&pagesize=20&page=3
as search results fetched page after page, search total results might alter , items of each page might vary while browsing through pages.
what kind of approaches there observe changes in data? total number of result 1 indication not fool proof.
usually there none detection. when come in page, new request done (rest) , recent info page displayed. google says 'about x results in total'. if insist on having counter fixed, have stop calling service 'a rest', take snapshot first search , display disabled entries when user browse pages
caching search language-agnostic
Comments
Post a Comment