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

Splits the Lists table population in 500 items batches #2746

Merged
merged 1 commit into from
Apr 30, 2019

Conversation

valadas
Copy link
Contributor

@valadas valadas commented Apr 29, 2019

Closes #2743

Summary

This PR splits the creation of rows in the Lists table into 500 item batches intead of a single bath with more than 5000 lines. This is to prevent a timeout issue during installation on some environments.

@valadas valadas added this to the 9.3.2 milestone Apr 29, 2019
Copy link
Contributor

@mitchelsellers mitchelsellers left a comment

Choose a reason for hiding this comment

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

LGTM.

Question: Did we want to also try changing the syntax of this to an insert with just multiple values or did we determine there wasn't enough impact?

@valadas
Copy link
Contributor Author

valadas commented Apr 30, 2019

I did not test the syntax change but went for the minimal change that fixed the issue. I am not sure on support for the other syntax on various SQL server versions so wanted to avoid introducing that change in a bug fix release that is already in RC stage. SQL server script generation looks more like the current syntax except it generates a go in each line and has hardcoded values instead of variables.

@mitchelsellers
Copy link
Contributor

Fair enough. @ohine any thoughts

@valadas
Copy link
Contributor Author

valadas commented Apr 30, 2019

Just let me know if you want me to test other solutions on that same machine since I have a good testbed to reproduce. My concern with the other solution was that it may not work everywhere (azure SQL, old versions of SQL server, etc.) Which I don't have a good testbed for.

@ohine ohine merged commit 2a4c9f1 into dnnsoftware:release/9.3.2 Apr 30, 2019
@valadas valadas deleted the issue-2743 branch December 31, 2019 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants