OCIError: ORA-01795: maximum number of expressions in a list is 1000

Open
#275 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby, sql
Domain
database

Research direction

Start by reproducing the Oracle error through the rom-repository combine and aggregate entry points, then inspect the subselect SQL they generate and compare it with the suggested wrap join approach. Done means identifying and documenting a supported workaround or a defined change that avoids Oracle's 1000-expression limit.

Written by the indexing model from the issue text.

Description

bug help wanted oracle

We get this error often when we use combine or aggregate in a rom-repository:
OCIError: ORA-01795: maximum number of expressions in a list is 1000
I believe this is because the above methods use subselects under the hood. Another option would be to use joins (eg. with wrap) but this is not feasible in our case.

Would it be possible to override this limitation of 1000 items in a list? Alternatively, is there a workaround you could suggest for this perhaps?

Your help would be much appreciated.

Dominant language
Ruby
Stars
220
Forks
97
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rom-rb/rom-sql

All issues in rom-rb/rom-sql

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.