Closed wormen closed 8 years ago
tell me how I can get the count of documents in the collection, not the full selected? eg the documentation is an example
$products = $collection->find(); $products->count()
so on large volumes of data will be noticeable brake
there is some variant like this?
$collection->count();
ie, in SQL, this query would look like this
select count(id) from table_name
tell me how I can get the count of documents in the collection, not the full selected? eg the documentation is an example
so on large volumes of data will be noticeable brake
there is some variant like this?
ie, in SQL, this query would look like this