0

We are building a system that are dealing with a huge amount of information (mainly data presented in different tables). When fetching the data only 100 items is apparently fetched from the server, without knowing how many items there is available.

  • How should we make this obvious for the user? "You are only viewing 100, but there might be more items available)

An ordinary pagination will be hard to accomplish, since we will not know how many pages there are available. We are considering this as some sort of "pagination"

enter image description here

Thoughts?

  • Another question is how we should manage an ordinary sorting on table headers? Is it obvious that a sort on column A will only affect what you are currently viewing (the 100 items)?

enter image description here

Personally I would find it a bit strange if I have performed a search and Item A-K is displayed in the table, but I am aware of the fact that there exists an item Z. I think that I would do a sort on the table header and expect to get Item Z on the top (not Item K)..

Thoughts on that?

2
  • Curious.. why you will not know how many records exist beyond a 100. and why you say "ordinary pagination will be hard to accomplish"... more detail will help in providing better suggestions.
    – PK2016
    Feb 8, 2016 at 14:25
  • I guess you could just have only "Show more" link. Why do you need page # box .. if there is no real pagination . You are showing records in 100 increments ? then just have one link .. " Show next 100 records "
    – PK2016
    Feb 8, 2016 at 14:43

2 Answers 2

2

"Sortable results" and "partial display of results" do not mix, unless the sort actually does sort against the full data set (such that a reverse sort goes and gets item Z etc, rather than just sorting whatever subset of items happen to already have loaded.) A table column sort that only sorts the currently-visible items, rather than the full data set, is worse than useless, because it produces misleading results for the users, and will have tons of undefinable corner cases. Here's one:

  • Do a text search for "frog", it goes to the server and retrieves 100 frogs starting with "Alpha Frogs" and ending with the "Garbage Frogs"
  • Click the column header to reverse sort. The list now begins with "Garbage Frogs" (because it was sorting only the already-loaded items).
  • Change the text search to "frogs". This goes to the server and retrieves 100 names starting with "Zzyzx Frogs".

In other words the same search / sort can produce completely different results depending on in what order the user happened to perform the search. That, needless to say, is bad design.

(I've also seen even worse implementations of this, where a new text search simply discards any existing sort settings, which "solves" the inconsistent-results problem by making the sort settings useless -- now there's no way to get to the Zzyzx frogs other than by clicking through the entire set of pages until you find the end.)

So: if you're going to have paginated results, every sort operation must result in a server call so that the sorted, paginated results accurately reflect the available data -- "Only search against whatever I happen to already be looking at", which is what your proposed column sort would do, is not something anyone would set out to design on purpose. (Plenty of sites have, of course, wound up 'designing' it by accident. Those sites are bad, and they should feel bad, as the saying goes.)

The "undefined number of pages" question is much easier to answer: just "Show more" (or equivalent text), which appends to the existing table rather than dropping already loaded results.

The utility of a "page number" field is quite limited: what use is skipping ahead to page n unless I already know exactly how many items are in your database? It's really only useful when stepping back to previous "pages", which is unnecessary if you append new results rather than blowing away old ones.)

3
  • I fully agree with you. The problem is that the technical solution is build in such a way that we can never retrieve a full set (only pick up X items and if we're lucky that is the full set, otherwise we can only know that there exists more and add a possibility to fetch more. We can not fetch them all at once unfortunately) So you would rather remove the sort all together? Or add a clearification sorts only current view
    – Sarah
    Feb 10, 2016 at 7:30
  • You don't have to retrieve the full set (and probably shouldn't, for bandwidth reasons), but you do need to be able to retrieve the first n according to whatever sort order the user has set -- i.e. your search endpoint needs to support an 'order by' parameter. If your engineers balk at that, yes, I would remove the sort altogether -- "sorts only current view" is worse than useless. (In general, any time I feel tempted to put a disclaimer in a UI that "hey this thing doesn't work the way you'd expect", that's a sign that there are underlying problems in that UI that need fixing.) Feb 10, 2016 at 12:58
  • 1
    Additionally, if you have concerns about displaying text "Show next 100 records" (when perhaps only 9 remain unseen... Or none for that matter), one solution is to actually load the next page immediately and keep the content hidden in a div until the "Show..." link is clicked. That way you know the exact size of the next page (having already loaded it) and can adjust your message accordingly. (Added benefit of making your pagination latency negligible!) Sep 22, 2016 at 1:55
0

I would put just one link below the table "Show next 100 records" and since sorting is usually done across the full data set, doing only current view sorting is not very common. I would put a note saying it only sorts current view of records..

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.