FireDAC.Phys.MongoDBWrapper.TMongoQuery.Limit
Delphi
function Limit(const AValue: Integer): TMongoQuery;
C++
TMongoQuery* __fastcall Limit(const int AValue);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TMongoQuery |
Description
Specifies the maximum number of documents the cursor will return, and returns a reference to this query object.
Use the Limit method to maximize performance and prevent MongoDB from returning more results than required for processing.