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
  • Loading branch information
matthew-contentful committed Nov 1, 2019
1 parent 70462a5 commit 8ae6b75
Show file tree
Hide file tree
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
Expand Up @@ -151,6 +151,8 @@ export default class Fetcher implements APIFetcher {

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

0 comments on commit 8ae6b75

Please sign in to comment.