If I used MySQLdb or JDBC to issue the sql: select * from users
to Mysql. Suppose the table has 1 billion records. Then how many rows would be returned by Mysql in one chunk/package. I mean Mysql won't transfer the rows one by one neither transfer all of the data just one time, right? So what's the default chunk/package size one internet transfer to the client please?
If I used server-side cursor then I should set the fetch size bigger than default chunk size for better performance, right please?