This is a discussion on Is stored procedure safe to query a large result set? within the MySQL Database forums, part of the Database Forums category; If we want to do processing on ALL the rows in a table (of a few milions rows), if using ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
If we want to do processing on ALL the rows in a table (of a few
milions rows), if using language such as php, we need to limit the amount of rows each time and process them chunk by chunk to prevent memory overflow. If using Stored Procedure, can this problem solved since data is always at the server side? No need to divide the data into smaller chunks, and let say, SELECT * FROM `table1` and loop all the rows using SP Thanks for any comment. |