What is the max number of rows one should pull at once from a database? : <p>I have a process that iterates through thousands of database tables and aggregates data, and I want to set a threshold limit <code>N</code> where if the row count is larger than N my process will dump the data to a file.</p>

<p>I'm wondering what would be a good limit for N?</p>
