Skip to content

Conversation

@jmgasper
Copy link
Collaborator

No description provided.

@jmgasper jmgasper requested a review from kkartunov October 31, 2025 04:34
@@ -0,0 +1,3 @@
-- Add a composite index to speed up paginated lookups by review item
CREATE INDEX IF NOT EXISTS "reviewItemComment_reviewItemId_sortOrder_id_idx"

Choose a reason for hiding this comment

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

[⚠️ performance]
Consider verifying that the order of columns in the composite index aligns with the query patterns used in the application. The order can significantly impact the performance of the index.

Copy link
Contributor

@kkartunov kkartunov left a comment

Choose a reason for hiding this comment

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

Looks good.

@@ -0,0 +1,3 @@
-- Add isFileSubmission flag to submissions to differentiate file vs URL entries
ALTER TABLE "submission"
ADD COLUMN IF NOT EXISTS "isFileSubmission" BOOLEAN NOT NULL DEFAULT false;

Choose a reason for hiding this comment

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

[⚠️ performance]
Consider adding an index on the isFileSubmission column if this field will be frequently queried or filtered on. This can improve query performance, especially on large datasets.

@UploadedFile() file: Express.Multer.File,
@Body() body: SubmissionRequestDto,
): Promise<SubmissionResponseDto> {
console.log(

Choose a reason for hiding this comment

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

[⚠️ maintainability]
Using console.log for logging is not recommended in production code. Consider using the LoggerService for consistent logging and to take advantage of any logging infrastructure in place.

@jmgasper jmgasper merged commit c2ca179 into develop Oct 31, 2025
6 checks passed
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.

3 participants