Skip to content

Commit

Permalink
Merge pull request #1196 from LibrePhotos/fix/improve-search-speed
Browse files Browse the repository at this point in the history
Remove very slow search_fields
  • Loading branch information
derneuere committed Apr 8, 2024
2 parents cb33d8a + 8bb8b25 commit 0f21564
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/views/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ class SearchListViewSet(ListViewSet):
search_fields = [
"search_captions",
"search_location",
"faces__person__name",
# To-Do: Leads to exceptionally slow queries with large datasets
# "faces__person__name",
"exif_timestamp",
"lens",
"main_file__path",
# To-Do: Leads to exceptionally slow queries with large datasets
# "main_file__path",
# To-Do: Allow searching for videos
]

Expand Down

0 comments on commit 0f21564

Please sign in to comment.