The speed of pandas read_sql is too slow. It takes about 10 seconds for 10W rows of data. Is there any optimization plan?

pandas read_sql is too slow

10W rows of data take about 10 seconds. Is there an optimization plan

?
Dec.02,2021

set the chunksize parameter to try. Returns the iterator.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b1506-24acb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b1506-24acb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?