Works fine, problem is the race between INSERT and SELECT queries.
SELECT queries return premature results, that is, the returned rows are
not complete because they are not fully inserted. This problem occurs if
items per page is large.