Skip to content

[_] chore: remove order by creation_time#1043

Closed
apsantiso wants to merge 2 commits into
masterfrom
chore/increase-limit-folder-stats
Closed

[_] chore: remove order by creation_time#1043
apsantiso wants to merge 2 commits into
masterfrom
chore/increase-limit-folder-stats

Conversation

@apsantiso
Copy link
Copy Markdown
Collaborator

@apsantiso apsantiso commented Apr 17, 2026

What

We increased the folder stats calculation limits so normal users don't run into issues when viewing the number of items inside their folders.

This query is not the most performant, but removing ORDER BY creation_time (expensive due to a missing index) allows us to safely increase the limits without a significant performance impact.

Changes

  • Removed order by creation_time as it adds no value here.
  • Increase file counter to 10k
  • Reduce depth to 50

@apsantiso apsantiso requested a review from xabg2 April 17, 2026 14:57
@apsantiso apsantiso requested a review from jzunigax2 as a code owner April 17, 2026 14:57
@apsantiso apsantiso changed the title [_] chore: increase limit folder stats [BR-1958] chore: increase limit folder stats Apr 17, 2026
@apsantiso apsantiso force-pushed the chore/increase-limit-folder-stats branch from 3d04b9b to 9100377 Compare April 17, 2026 15:06
@sonarqubecloud
Copy link
Copy Markdown

@apsantiso apsantiso changed the title [BR-1958] chore: increase limit folder stats [_] chore: remove order by creation_time Apr 20, 2026
@apsantiso apsantiso closed this Apr 20, 2026
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.

1 participant