I would like to make this process in batches, because of the volume.
Here\'s my code:
getconn = conexiones() con = getconn.mysqlDWconnect() with con:
You can use
SELECT id, date, product_id, sales FROM sales LIMIT X OFFSET Y;
where X is the size of the batch you need and Y is current offset (X times number of current iterations for example)