Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

fixes #816 - bill committee meeting autocomplete shouldn't take so long to load #817

Conversation

OriHoch
Copy link

@OriHoch OriHoch commented Jan 15, 2017

@@ -965,7 +965,7 @@ def committee_meeting_auto_complete(request):

optional_committee_meetings = CommitteeMeeting.objects.filter(
Q(date_string__icontains=q) | Q(topics__icontains=q)
)
)[:10]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But does't this remove meetings that should be available? maybe a better strategy would be using topics only when q is a topic, or prefetch_related topics or try to give more information for the q so the basic query would have less results and be more precise

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure I understand, if you could send an example from other places that would be helpful..

@OriHoch OriHoch merged commit 3976472 into hasadna:master Feb 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants