-
Notifications
You must be signed in to change notification settings - Fork 2
Fix perfromace issue #188
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 perfromace issue #188
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1505,7 +1505,7 @@ export class PostService { | |||||
| ): Promise<{ posts: FeedPostResponse[] }> { | ||||||
| const qualityWeight = 0.3; | ||||||
| const personalizationWeight = 0.7; | ||||||
|
|
||||||
| console.log('pagepage', page, limit); | ||||||
|
||||||
| console.log('pagepage', page, limit); | |
| console.log('page', page, 'limit', limit); |
Copilot
AI
Dec 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding nested originalPost querying (3 levels deep: post -> quote -> nested quote) significantly increases query complexity and can cause severe performance degradation. Each nested level multiplies the number of subqueries executed. This appears to contradict the PR's goal of fixing performance issues. Consider limiting nesting depth or fetching nested data separately if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This console.log statement with informal naming ('pagepage') should be removed before merging to production. Debug logging like this can clutter logs and impact performance in high-traffic scenarios.