Hi,
Sorry if this question is elementary...
I'm just wondering about efficiency in database queries. At work, I need to access data from MySQL, MS SQL, and Oracle. I was wondering, when you query from PHP and you have the result resource id, what memory is that result data in? The database? or PHP?
I've been through the mechanics of connecting and grabbing data from all, but never read an explanation of what is happening and where it's happening behind the scenes.
So, you've done the query, you have a result pointer. Before you fetch a row, all rows, or anything, where is the data, and should I vary how I grab the data depending on whether it's a local DB, or a remote DB for efficiency sake?
Thanks





Thanks for the correction.

Bookmarks