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

fix: change default begin time #438

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

wildeslam
Copy link
Collaborator

No description provided.

Copy link

sonarcloud bot commented Jul 12, 2024

@@ -378,7 +378,7 @@ public Response countRecord(@Valid @RequestBody CountRecordRequestType requestTy
long currentTime = System.currentTimeMillis();

if (requestType.getBeginTime() == null) {
requestType.setBeginTime(currentTime - 4 * 24 * 60 * 60 * 1000L);
requestType.setBeginTime(0L);
Copy link
Collaborator

Choose a reason for hiding this comment

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

ensure the usage of index in the method of "getLastRecordVersionMocker" and "mongoTemplate.count"
Test: the consumed time of querying on unusal suitation that the record case exists one year

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