Ok about the page size, it was one of my desparate and illogical attemps to get things speeded up.
And on transaction inside while loops, the reason I am doing it is because in the real application where SQLite is going to be used, there is one thread that is getting data packets from internet in a arbitrary way and is inserting them in the ...