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

Use JSONB instead of arrays for requestedGroupIds #9043

Open
flvndvd opened this issue Dec 2, 2024 · 1 comment
Open

Use JSONB instead of arrays for requestedGroupIds #9043

flvndvd opened this issue Dec 2, 2024 · 1 comment
Assignees

Comments

@flvndvd
Copy link
Contributor

flvndvd commented Dec 2, 2024

More context here.

PostgreSQL doesn't support jagged arrays (array of arrays such that member arrays can be of different sizes). The only alternative is to use JSONB field.

@spolu
Copy link
Contributor

spolu commented Dec 2, 2024

JSONB or pad with zeros. But let's avoid padding with the last value as this can likely grow indefeinitely in the current state of affair if we add a group to a padded one.

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

No branches or pull requests

2 participants