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

refactor: 优化构造SQL性能 #72

Merged
merged 10 commits into from
May 31, 2024
Merged

refactor: 优化构造SQL性能 #72

merged 10 commits into from
May 31, 2024

Conversation

zhou-hao
Copy link
Member

@zhou-hao zhou-hao commented May 24, 2024

自定义条件时, 建议根据情况使用 BatchSqlFragments或者SqlFragments#single,of 或者 SimpleSqlFragments.of

in等操作需要拼接多个?,?时,可以使用 SqlUtils#createQuestionMarks

自定义条件时, 建议根据情况使用 `BatchSqlFragments`或者`SqlFragments#single,of` 或者 `SimpleSqlFragments.of`
@codecov-commenter
Copy link

codecov-commenter commented May 24, 2024

Codecov Report

Attention: Patch coverage is 64.12556% with 240 lines in your changes are missing coverage. Please review.

Project coverage is 62.07%. Comparing base (d77de93) to head (dd282ca).

Files Patch % Lines
...ports/postgres/PostgresqlSaveOrUpdateOperator.java 0.00% 35 Missing ⚠️
...a/org/hswebframework/ezorm/rdb/utils/FlatList.java 52.54% 25 Missing and 3 partials ⚠️
.../rdb/supports/mysql/MysqlSaveOrUpdateOperator.java 0.00% 23 Missing ⚠️
.../builder/fragments/SimpleTermsFragmentBuilder.java 61.29% 7 Missing and 5 partials ⚠️
...lder/fragments/update/DefaultUpdateSqlBuilder.java 70.73% 8 Missing and 4 partials ⚠️
...pports/postgres/PostgresqlBatchUpsertOperator.java 57.14% 10 Missing and 2 partials ⚠️
...zorm/rdb/metadata/AbstractTableOrViewMetadata.java 57.69% 11 Missing ⚠️
...orm/rdb/supports/mssql/SqlServer2012Paginator.java 31.25% 11 Missing ⚠️
...b/supports/mssql/SqlServerBatchUpsertOperator.java 57.69% 9 Missing and 2 partials ⚠️
...uilder/fragments/insert/BatchInsertSqlBuilder.java 74.28% 7 Missing and 2 partials ⚠️
... and 19 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #72      +/-   ##
============================================
+ Coverage     62.05%   62.07%   +0.02%     
- Complexity     2100     2142      +42     
============================================
  Files           329      334       +5     
  Lines          8749     8939     +190     
  Branches        841      873      +32     
============================================
+ Hits           5429     5549     +120     
- Misses         2876     2930      +54     
- Partials        444      460      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhou-hao zhou-hao merged commit eabe284 into master May 31, 2024
1 check passed
@zhou-hao zhou-hao deleted the refactor-performance branch May 31, 2024 06:15
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.

2 participants