Skip to content

datatables view is very slow for large tables #8595

@wardi

Description

@wardi

CKAN version

master, 2.11, 2.10

Describe the bug

datatables draw calls are used in 7 places in our datatablesview.js script. Each will cause a new ajax call that runs datastore_search on the back end.

On initial page load this ajax call is run 3 times, so if a table takes 5s to return datastore_search results the datatable view won't be rendered until more than 15s have passed.

Steps to reproduce

render a datatable view of a large datastore table

Expected behavior

ckan should only trigger expensive calls to the datatable ajax back end when necessary.

Additional details

slow-datatable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions