Odd API behavior / apparently random order

Bug #553558 reported by bradymatthews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Library
New
Undecided
Anand Chitipothu

Bug Description

I have two tabs open:
"Tab 1" http://openlibrary.org/query.json?type=/type/work&*=&limit=1
and
"Tab 2" http://openlibrary.org/query.json?type=/type/work&*=&limit=1&offset=500000

Each time I refresh Tab 2 I get a different result. It doesn't appear to be ordered by last_modified or date created.. it just seems, well.. random. Ideally it should be ordered by your internal id (OLID, or date created..) so I get the same result each time.

Now here's the really odd part.

Tab 1 generally shows the same result when I reload the page. However, each time I refresh Tab 2, it changes the result I see on Tab 1.

Refresh Tab 1: [{"title": "Modern spherical functions"
Refresh Tab 1: [{"title": "Modern spherical functions"
Refresh Tab 1: [{"title": "Modern spherical functions"
Refresh Tab 2: [{"title": "Byron Harmon"
Refresh Tab 1: [{"title": "Women and social security"

If Tab 2 were changed from &offset=500000, to &offset=100 (or some other arbitrarily low number), this doesn't happen. Tab 1 stays the same.

The same thing occurs with /type/edition (and probably author etc)

Tags: api
tags: added: api
Changed in openlibrary:
assignee: nobody → Anand Chitipothu (anandology)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.