logoalt Hacker News

brentrooseyesterday at 1:31 PM1 replyview on HN

Almost all, actually. I wrote about it here: https://stitcher.io/blog/11-million-rows-in-seconds

A couple of things I did:

- Cursor based pagination - Combining insert statements - Using database transactions to prevent fsync calls - Moving calculations from the database to PHP - Avoiding serialization where possible


Replies

tiffanyhyesterday at 1:43 PM

Aren’t these optimizations less about PHP, and more about optimizing how your using the database.

show 3 replies