Skip to content

Commit

Permalink
disable RequestLimit for now (save for next release)
Browse files Browse the repository at this point in the history
awaiting feedback on performance before baking the API
  • Loading branch information
guregu committed May 5, 2024
1 parent 54e2f54 commit 17ebbaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17ebbaf

Please sign in to comment.