# Once again processing 11 million rows, now in seconds

DevFeed: [Once again processing 11 million rows, now in seconds](<https://devfeed.tech/articles/once-again-processing-11-million-rows-now-in-seconds-44063.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/11-million-rows-in-seconds>)

Author: Brent

Published: 2026-01-28T00:00:00Z

Content type: article

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [Optimization](<https://devfeed.tech/topics/optimization.md>), [Database](<https://devfeed.tech/topics/database.md>), [PHP](<https://devfeed.tech/topics/php.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [processing](<https://devfeed.tech/topics/processing.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [database](<https://devfeed.tech/tags/database.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [php](<https://devfeed.tech/tags/php.md>), [processing](<https://devfeed.tech/tags/processing.md>)

## AI overview

A PHP optimization experiment processes 11 million database-stored events more efficiently. The article describes combining insert queries, moving yearly aggregation work into PHP, and making smaller query and chunk-size adjustments to improve throughput from 50,000 to 270,000 events per second.

## Source excerpt

Read the full post on https://stitcher.io/blog/11-million-rows-in-seconds