Skip to content

Rework prepared queries - #677

Merged
vietj merged 11 commits into
masterfrom
rework-prepared-queries
Jun 19, 2020
Merged

Rework prepared queries#677
vietj merged 11 commits into
masterfrom
rework-prepared-queries

Conversation

@vietj

@vietj vietj commented Jun 5, 2020

Copy link
Copy Markdown
Member

@vietj
vietj force-pushed the rework-prepared-queries branch from 799881d to 7d1fcdf Compare June 5, 2020 16:43
@BillyYccc

Copy link
Copy Markdown
Member

Does this imply the statement auto-closing after one-shot preparedQuery is handled by the codec layer?

@vietj

vietj commented Jun 6, 2020

Copy link
Copy Markdown
Member Author

@BillyYccc yes it is implied when there is no caching

@vietj

vietj commented Jun 6, 2020

Copy link
Copy Markdown
Member Author

@BillyYccc @aguibert I would like to know if the above is fine and then we can start finishing this PR together and after back-port it to 3.9

@vietj
vietj force-pushed the rework-prepared-queries branch from 7d1fcdf to f3f3056 Compare June 15, 2020 15:11
@vietj

vietj commented Jun 15, 2020

Copy link
Copy Markdown
Member Author

I updated this PR with an intermediate change that does not require modification of current codecs and is actually more satisfying. I'll update the proposal issue to be in sync with this change.

@vietj

vietj commented Jun 15, 2020

Copy link
Copy Markdown
Member Author

so this should not involve contributions from @aguibert and @BillyYccc

@vietj
vietj force-pushed the rework-prepared-queries branch from eaa976a to 612e3d2 Compare June 15, 2020 20:41
@vietj

vietj commented Jun 15, 2020

Copy link
Copy Markdown
Member Author

Updated with prepared query caching simplification and corrections.

@vietj
vietj marked this pull request as ready for review June 16, 2020 11:09
@vietj

vietj commented Jun 16, 2020

Copy link
Copy Markdown
Member Author

I'm moving this PR to review so people can comment and make feedback. I'll review it myself also as there might be simplifications to do.

@vietj

vietj commented Jun 16, 2020

Copy link
Copy Markdown
Member Author

To ease the review I will push the first commit that refactor the extended query commands in a single command to master as it is not related to the PR and the goal was to simplify and help this change

@vietj
vietj force-pushed the rework-prepared-queries branch 2 times, most recently from 9b0c9d6 to bcdc979 Compare June 16, 2020 15:26
@vietj

vietj commented Jun 16, 2020

Copy link
Copy Markdown
Member Author

this is ready for review

@vietj
vietj requested review from BillyYccc and aguibert June 16, 2020 16:29
@vietj
vietj force-pushed the rework-prepared-queries branch from bcdc979 to 098da73 Compare June 18, 2020 10:17
@vietj

vietj commented Jun 18, 2020

Copy link
Copy Markdown
Member Author

Pushed a fix for the incorrect pipelining count that was found by a case provided by @BillyYccc

@vietj
vietj force-pushed the rework-prepared-queries branch from 098da73 to b55f690 Compare June 18, 2020 10:20
@vietj
vietj force-pushed the rework-prepared-queries branch from b55f690 to 1141abe Compare June 18, 2020 12:41
Signed-off-by: Billy Yuan <billy112487983@gmail.com>
Signed-off-by: Billy Yuan <billy112487983@gmail.com>
Signed-off-by: Billy Yuan <billy112487983@gmail.com>

@BillyYccc BillyYccc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks overall to me now, I have added some commits and we need to backport them to 3.9 as well

Comment thread vertx-sql-client/src/main/java/io/vertx/sqlclient/impl/SocketConnectionBase.java Outdated
@vietj

vietj commented Jun 19, 2020

Copy link
Copy Markdown
Member Author

I back ported the commits @BillyYccc

@vietj
vietj force-pushed the rework-prepared-queries branch from 60a7654 to 87b490f Compare June 19, 2020 09:47
@vietj

vietj commented Jun 19, 2020

Copy link
Copy Markdown
Member Author

@BillyYccc added support for SQL cache filtering, I think now we are good and we can do a final pass on the review

@BillyYccc BillyYccc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks @vietj for the effort on this!

@vietj

vietj commented Jun 19, 2020

Copy link
Copy Markdown
Member Author

it was a collaboration as usual @BillyYccc :-)

@vietj
vietj merged commit b83783b into master Jun 19, 2020
@vietj
vietj deleted the rework-prepared-queries branch July 2, 2020 06:27
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