How does PHP MongoDB Driver Cursor populate the result set?

When requests are processed in mongodb, how does the cursor handle the result set in memory? Does the cursor display all documents matching the query at once? or does he get one document at a time? or are they buffered? or is there another solution that I don’t know about?

If this is a buffer solution, how are they stored on the server / client? How much data does the client store locally?

+5
source share
1 answer

MongoDB's wired protocol has specifications for batch size when issuing a request.

, numberToReturn. numberToReturn, .

, "". , getmore . , .

PHP . , , - , getmore, .

Max BSON numberToReturn. , , Max BSON, .

- .

+5

All Articles