Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Add Filter" Performance Issue #4162

Open
jqnatividad opened this issue Mar 30, 2018 · 0 comments
Open

"Add Filter" Performance Issue #4162

jqnatividad opened this issue Mar 30, 2018 · 0 comments
Assignees

Comments

@jqnatividad
Copy link
Contributor

@jqnatividad jqnatividad commented Mar 30, 2018

CKAN Version if known (or site URL)

2.5.7

Please describe the expected behaviour

When using "Add Filter" in a datatables resource view, the "Add Filter" should load-paginate the distinct values of a given column in a performant manner, leveraging the user-keyed value to smartly search/autocomplete the dataset resource.

Please describe the actual behaviour

if you go to

https://data.boston.gov/dataset/311-service-requests/resource/2968e2c0-d479-49ba-a884-4ef523ada3c0

and do "Add Filter", select "CASE_TITLE" and type in "Request for Pothole Repair", it takes a long time
the freetext search on the right, returns 55K rows in less than 5 secs for the same thing
It seems the root cause is that the "Add Filter" loads the distinct values for CASE_TITLE and there are about 13k distinct vals given its a freetext field... any tweaks we can do in the "Add Filter" functionality to make it smarter - i.e. as the use types, it only loads vals starting with the keyed value?

What steps can be taken to reproduce the issue?

jguo144 added a commit to OpenGov-OpenData/ckan that referenced this issue May 10, 2018
jguo144 added a commit to OpenGov-OpenData/ckan that referenced this issue May 10, 2018
jguo144 added a commit to OpenGov-OpenData/ckan that referenced this issue May 10, 2018
wardi added a commit that referenced this issue May 11, 2018
smotornyuk added a commit that referenced this issue May 30, 2018
[#4162] view filter: use plain queries when required
tino097 added a commit that referenced this issue Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants