Skip to content

Commit

Permalink
fix(stable-results): Order results to protect against changing result…
Browse files Browse the repository at this point in the history
… set ordering. Increase page size for better performance (#231)
  • Loading branch information
matthew-contentful authored Nov 4, 2019
1 parent 70462a5 commit b79b50f
Showing 5 changed files with 1,521 additions and 1,569 deletions.
2 changes: 2 additions & 0 deletions src/lib/fetcher.ts
Original file line number Diff line number Diff line change
@@ -151,6 +151,8 @@ export default class Fetcher implements APIFetcher {

while (true) {
const paramsWithSkip = {
limit: '500',
order: 'sys.createdAt',
...params,
skip: skip.toString(10)
}
Loading

0 comments on commit b79b50f

Please sign in to comment.