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

Source date save now checks before using TRANSLATE scalar #1175

Merged
merged 4 commits into from
Mar 27, 2023

Conversation

worksofliam
Copy link
Contributor

Changes

SQL TRANSLATE is expensive when inserting a lot of data. This was very visible when working with large files. Translate is only required for source colour support, so therefore the save should only use translate when source colour is enabled.

I don't use source colours and this has sped up the save process significantly.

Checklist

  • have tested my change
  • updated relevant documentation
  • Remove any/all console.logs I added
  • eslint is not complaining
  • have added myself to the contributors' list in CONTRIBUTING.md
  • for feature PRs: PR only includes one feature enhancement.

Signed-off-by: Liam Allan <mrliamallan@live.co.uk>
@worksofliam worksofliam changed the title Source date save now checks before using TRANSLATE scalar Source date save now checks before using TRANSLATE scalar Mar 25, 2023
Signed-off-by: Liam Allan <mrliamallan@live.co.uk>
@worksofliam worksofliam removed their assignment Mar 27, 2023
@worksofliam
Copy link
Contributor Author

@chrjorgensen Added the fix you suggested! Please retest whenever you have a moment :)

Signed-off-by: Liam Allan <mrliamallan@live.co.uk>
@worksofliam worksofliam linked an issue Mar 27, 2023 that may be closed by this pull request
Signed-off-by: Liam Allan <mrliamallan@live.co.uk>
@worksofliam worksofliam merged commit fcdc594 into master Mar 27, 2023
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.

Iseries source code deleted when I try to save changes
2 participants