]> git.arvados.org - arvados.git/commit
Adds no_count option to list method
authorJoshua C. Randall <jcrandall@alum.mit.edu>
Sat, 12 Nov 2016 14:21:24 +0000 (14:21 +0000)
committerJoshua C. Randall <jcrandall@alum.mit.edu>
Sat, 12 Nov 2016 14:21:24 +0000 (14:21 +0000)
commitbb037e3872214d2b709964405775f476c6b3b550
treec96691f2d97cf3516f393dc22d13d2c20f25f050
parent9640930c3934344ab64c92a5c86c1f7488a4de42
Adds no_count option to list method

When `no_count` is true, the API server will not query the database
for the count of items and it will not return `items_available` in
the JSON output.

This is expected to offer a major performance improvement when
tables are large and the count is not needed, since postgres
can otherwise take far longer to answer the COUNT() query than
to answer the main query and return the requested list.
services/api/app/controllers/application_controller.rb
services/api/app/controllers/arvados/v1/schema_controller.rb