You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lower MAX_USER_MODULES to 4096 but make it actually work (#36478)
There were a couple issues:
- Audit logging creates a ConvexArray with one entry per user module, which implies a hard limit of 8192
- Also, we would hit a TooManyReads error when replacing too many modules in one transaction.
The former is fixed by lowering MAX_USER_MODULES to be safely within the limit - 4096 for now.
This could be raised a little if necessary, but otherwise we would have to change the audit log schema.
The latter is fixed by a somewhat hacky change: since we already read out all the modules from the database,
we can read the `by_id` index instead of `by_creation_time` (which is used by full_table_scan). Then,
the additional read ranges created by `Transaction::replace` will merge with the full-table range,
instead of creating many small ones.
GitOrigin-RevId: 70d43a529b669e59af76fbb87502e61cd265f340
0 commit comments