From 17ebbafbed5ffc374211b05ee5faafccc2e9207f Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 5 May 2024 12:40:43 +0900 Subject: [PATCH] disable RequestLimit for now (save for next release) awaiting feedback on performance before baking the API --- query.go | 8 ++++---- scan.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/query.go b/query.go index a4593dc..498e65e 100644 --- a/query.go +++ b/query.go @@ -185,10 +185,10 @@ func (q *Query) SearchLimit(limit int64) *Query { } // RequestLimit specifies the maximum amount of requests to make against DynamoDB's API. -func (q *Query) RequestLimit(limit int) *Query { - q.reqLimit = limit - return q -} +// func (q *Query) RequestLimit(limit int) *Query { +// q.reqLimit = limit +// return q +// } // Order specifies the desired result order. // Requires a range key (a.k.a. partition key) to be specified. diff --git a/scan.go b/scan.go index 449e7be..44e3e40 100644 --- a/scan.go +++ b/scan.go @@ -131,10 +131,10 @@ func (s *Scan) SearchLimit(limit int64) *Scan { } // RequestLimit specifies the maximum amount of requests to make against DynamoDB's API. -func (s *Scan) RequestLimit(limit int) *Scan { - s.reqLimit = limit - return s -} +// func (s *Scan) RequestLimit(limit int) *Scan { +// s.reqLimit = limit +// return s +// } // ConsumedCapacity will measure the throughput capacity consumed by this operation and add it to cc. func (s *Scan) ConsumedCapacity(cc *ConsumedCapacity) *Scan {