Pagination with concurrent inserts, stale queries and cahcing