barzerman / barzer

barzer engine code
MIT License
2 stars 0 forks source link

very difficult .. add paging to beni #667

Open barzerman opened 10 years ago

barzerman commented 10 years ago

this is SUPER difficult when beni matches a log of results it should be possible to request "pages" of data N results for a query at a time starting with M-th element

barzerman commented 10 years ago

this should be done by creating in-engine cache . key to the cache should be userid and original query ... 0) beni cache is per universe 1) readwrite lock semantics (same as universe) 2) it should be possible assess if beni results could be cache worthy by size. too small pre-cutoff - no need to cache. pagesize*20 should be sort of the limit 3) there needs to be a concept of LRU 4) needs interface to clear cache at will. and UNiverse reload must clear all its caches 5) query needs to have "beniskip" and "benimax" parameters - skip first beniskip results , return up to benimax results