-
-
Notifications
You must be signed in to change notification settings - Fork 62
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 time window in search requests #2126
Draft
artonge
wants to merge
5
commits into
master
Choose a base branch
from
artonge/feat/add_time_window_in_search_requests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
artonge
force-pushed
the
artonge/feat/add_time_window_in_search_requests
branch
2 times, most recently
from
November 13, 2023 13:36
f5b38a2
to
265ac3a
Compare
artonge
added
enhancement
New feature or request
3. to review
Waiting for reviews
javascript
Javascript related ticket
performances
Performances issues and optimisations
labels
Nov 13, 2023
/compile amend / |
artonge
force-pushed
the
artonge/feat/add_time_window_in_search_requests
branch
from
November 13, 2023 14:10
265ac3a
to
791761f
Compare
artonge
force-pushed
the
artonge/feat/add_time_window_in_search_requests
branch
2 times, most recently
from
November 13, 2023 17:51
d4d15b3
to
498ecdb
Compare
Note: maybe I can send the request as:
|
|
Check favorites and on this day views |
auto-merge was automatically disabled
November 14, 2023 09:59
Pull request was converted to draft
artonge
force-pushed
the
artonge/feat/add_time_window_in_search_requests
branch
from
November 15, 2023 15:40
18582ec
to
0e654e1
Compare
Signed-off-by: Louis Chemineau <louis@chmn.me>
artonge
force-pushed
the
artonge/feat/add_time_window_in_search_requests
branch
from
December 21, 2023 12:42
4e8148c
to
b003a1a
Compare
This was referenced Mar 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3. to review
Waiting for reviews
enhancement
New feature or request
javascript
Javascript related ticket
performances
Performances issues and optimisations
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rational
The current SEARCH request is done on all the files. Which means that for each requests, the server has to get all the files, order them and pick the first 200. This is really heavy when the user as a lot of photos.
The goal of this PR is to limit the query to a certain time window, so the server works with a subset of the user's photos.
The front-end now sends an upper and a lower time bound.
The front-end now also need to be smart about the requests in order to limit the number of requests:
Limitation:
Test requests
getlastmodified
and check that metadata isNULL
: