Skip to content

Batched findUnique() is not chunked and exceeds parameter binding limits #24443

Closed as not planned

Description

@janpio

I interestingly run into an unrelated bug, for example with 40000:

Assertion violation on the database: `too many bind variables in prepared statement, expected maximum of 32767, received 40001`

That could be another case of #23957

Originally posted by @janpio in #24419 (comment)

Reproduction is at #24419 (comment) - just increase the number of items read.

Activity

  1. added
    bug/1-unconfirmed
    kind/bug
    on Jun 5, 2024
  2. self-assigned this
    on Jun 6, 2024
  3. added
    bug/2-confirmed
    and removed
    bug/1-unconfirmed
    on Jun 6, 2024
  4. flaviaan commented on Jun 6, 2024

    @flaviaan
    Contributor
  5. flaviaan commented on Jun 6, 2024

    @flaviaan
    Contributor

    A simpler fix than fixing the chunking logic in-depth could be to apply the suggestion proposed here: #22902 - By flattening the OR/ANDs, the existing chunking logic would pick it up again.

  6. jkomyno commented on Jan 6, 2025

    @jkomyno
    Contributor

    Closing this in favour of #23957

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions