Skip to content

Commit

Permalink
add warning about rows/offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
gbilder committed Apr 30, 2021
1 parent 25ea07b commit 907cdbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api_tips.md
Expand Up @@ -75,6 +75,9 @@ If you are trying to match references- the simplest approach is the best. Just u
```
http://api.crossref.org/works?query.bibliographic="Toward a Unified Theory of High-Energy Metaphysics, Josiah Carberry 2008-08-13"&rows=2
```
### Don't use `rows`/`offsets` in the `/works` route . They are very expensive and slow. Use cursors instead.

Note much to say. We implimented rows/offsets early in the development of the API and regretted it emmediately. So we implimented cursors instead and kept rows/offsets so as to not break existing scripts. But NOBODY should use them.

### Optimise your requests and pay attention to errors.

Expand Down

0 comments on commit 907cdbe

Please sign in to comment.