I have a DB with 100K records
I need to pull out ONE records at a time for processing
I say SELECT * FROM table WHERE done=0 LIMIT 1;
Since the records have 30+ fields (some large) would it be better to say
SELECT id FROM table WHERE done=0 LIMIT 1;
and then do another SELECT * for this 'id'
Just thinking of mySQL holding all that data just to throw it all away again for the LIMIT 1
I need to pull out ONE records at a time for processing
I say SELECT * FROM table WHERE done=0 LIMIT 1;
Since the records have 30+ fields (some large) would it be better to say
SELECT id FROM table WHERE done=0 LIMIT 1;
and then do another SELECT * for this 'id'
Just thinking of mySQL holding all that data just to throw it all away again for the LIMIT 1
Comment