Skip to content

fix(gdpr): add indexes to user-consent entity - #1376

Open
Peolite001 wants to merge 3 commits into
rinafcode:mainfrom
Peolite001:fix-1246-user-consent-indexes
Open

fix(gdpr): add indexes to user-consent entity#1376
Peolite001 wants to merge 3 commits into
rinafcode:mainfrom
Peolite001:fix-1246-user-consent-indexes

Conversation

@Peolite001

Copy link
Copy Markdown

Closes #1246.

This PR adds appropriate indexes to the user-consent entity to keep common query paths performant, specifically indexing the userId and consentType columns which are frequently used for lookups and filtering.

It also includes a reviewable migration (1802000000000-add-user-consent-indexes.ts) to create the indexes on existing databases.

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@Peolite001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Well done on the job done so far!
Kindly fix workflow to pass.

@Peolite001

Copy link
Copy Markdown
Author

Well done on the job done so far! Kindly fix workflow to pass.

done

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.

Add database indexes to the user-consent entity

2 participants