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

1660 SqlUtil op_in() for 0.8.12 #1666

Closed
wants to merge 5 commits into from
Closed

Conversation

gamato
Copy link
Contributor

@gamato gamato commented Feb 14, 2017

This is a "rebase" of #1661 for branch 0.8.12

The latter checks limitations of Oracle (ORA-22165 or ORA-01795).
The trick here is to split long arrays to chunks of no more than 32767 elements.
As we do not have any workaround this test case would fail depending on MS SQL version.
Copy link
Contributor

@pvanek pvanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"union all" cannot be used here. Let's assume if there will be a huge list with repeating elements (1,2,3, ..., 1,2,3, 1,2,3). Union all will cause duplicated rows returned. We have to use plain "union" which will cause additional performance damage of course...

How it will work with orderby and / or aggregate functions?

Also I suggest to extend docs to say that using huge in lists is a sign of potentially bad design of an application.

@gamato
Copy link
Contributor Author

gamato commented Feb 14, 2017

I'm not sure how to "directly" reply to change request from the review above, so here's my regular comment:

I thought about the same thing. Eventually I lean towards processing duplicates instead of performance impacts of union. Duplicates can be, and often are, removed in user code. And even if they are not, it seems better option than sorting for unions.

The documentation was extended with notes as you suggest. Maybe the wording can be better? Please suggest or update the branch, I'm fine with it. Thanks.

@davidnich davidnich closed this Feb 15, 2017
@davidnich davidnich deleted the 1660_SqlUtil_op_in_for_0.8.12 branch February 15, 2017 05:34
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.

None yet

3 participants