techfromsage / tripod-php

Object Graph Mapper for managing RDF data in Mongo
MIT License
29 stars 4 forks source link

Provide option to return a cursor for table row results #129

Closed rsinger closed 6 years ago

rsinger commented 6 years ago

Since table rows are probably the most likely 'bulk' results operation, this branch gives the option to replace the results value with a \MongoDB\Driver\Cursor object, rather than an array. The returned documents are identical to the previous behavior.

Also added is an option to suppress getting counts: with the cursor, it's not as necessary to do paging, so doing a count is an unnecessary performance hit.