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

Speed up batchiepatchie by adding a date-range filter that defaults to 1 day #114

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

JonathanAquino-NextRoll
Copy link
Contributor

Note: This PR has been split into smaller commits for easier review.

This PR dramatically speeds up batchiepatchie by adding a date filter. If you choose 1 day, queries that used to time out (because they were hardcoded to look back 30 days) will load in under 1 second.

image

@@ -28,14 +28,16 @@ class Search extends React.Component {
static propTypes = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This PR has been split into smaller commits for easier review.

This PR is best reviewed with whitespace turned off.

@@ -28,14 +28,16 @@ class Search extends React.Component {
static propTypes = {
loading: PropTypes.bool.isRequired,
qTemp: PropTypes.string.isRequired,
dateRange: PropTypes.string.isRequired,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I basically add dateRange wherever q appeared before.

Copy link

@eagarcia-adroll eagarcia-adroll left a comment

Choose a reason for hiding this comment

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

LGTM

@JonathanAquino-NextRoll JonathanAquino-NextRoll merged commit 53a1ff4 into master Oct 31, 2024
1 check passed
@JonathanAquino-NextRoll JonathanAquino-NextRoll deleted the date-range-filter branch October 31, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants