Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • I think he specifically wanted an answer that avoided using fetchall Commented Dec 31, 2012 at 15:19
  • but fetchALL wastes memory from the experience of others...thanks :) Commented Dec 31, 2012 at 15:19
  • @MichaelSamuel Why? Have you got proof in the way of benchmarks that fetchAll() is “bad on memory” and “wasteful”, or are you just going on what you’ve read elsewhere? I imagine one fetchAll() is better than multiple fetch()s. Commented Dec 31, 2012 at 15:30
  • haven't tested it personally but a lot of people here reported memory problems using it Commented Dec 31, 2012 at 15:33
  • Can’t say I’ve had a problem with it in 3+ years. Commented Dec 31, 2012 at 15:34