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

Prepare queries in mongoose_cluster_id #3098

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

leszke
Copy link
Contributor

@leszke leszke commented Apr 23, 2021

No description provided.

@codecov
Copy link

codecov bot commented Apr 23, 2021

Codecov Report

Merging #3098 (3f4b722) into master (d15d4d9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3098   +/-   ##
=======================================
  Coverage   79.02%   79.02%           
=======================================
  Files         386      386           
  Lines       31830    31832    +2     
=======================================
+ Hits        25153    25155    +2     
  Misses       6677     6677           
Impacted Files Coverage Δ
src/mongoose_cluster_id.erl 77.77% <100.00%> (+6.62%) ⬆️
src/cassandra/mongoose_cassandra_worker.erl 70.75% <0.00%> (-2.36%) ⬇️
src/mam/mod_mam.erl 88.31% <0.00%> (-0.94%) ⬇️
src/mod_bosh_socket.erl 78.88% <0.00%> (-0.32%) ⬇️
src/ejabberd_sm.erl 75.60% <0.00%> (-0.31%) ⬇️
src/mod_roster.erl 76.56% <0.00%> (-0.24%) ⬇️
src/mod_muc_room.erl 77.38% <0.00%> (-0.12%) ⬇️
src/mod_muc_log.erl 77.72% <0.00%> (ø)
src/rdbms/mongoose_rdbms_odbc.erl 78.70% <0.00%> (ø)
src/ejabberd_c2s.erl 89.43% <0.00%> (+0.07%) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d15d4d9...3f4b722. Read the comment docs.

@leszke leszke force-pushed the prepared-queries-mongoose-cluster-id branch from 186a80d to ad04bc7 Compare April 26, 2021 08:49
@leszke leszke marked this pull request as ready for review April 26, 2021 08:51
Copy link
Contributor

@arcusfelis arcusfelis left a comment

Choose a reason for hiding this comment

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

looks ok

Copy link
Member

@chrzaszcz chrzaszcz left a comment

Choose a reason for hiding this comment

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

Nice to see the prepared queries introduced here. I have a few comments.

src/mongoose_cluster_id.erl Outdated Show resolved Hide resolved
src/mongoose_cluster_id.erl Outdated Show resolved Hide resolved
Copy link
Member

@chrzaszcz chrzaszcz left a comment

Choose a reason for hiding this comment

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

Looks good, one minor comment from me.


-spec execute_cluster_insert_new(binary()) -> mongoose_rdbms:query_result().
execute_cluster_insert_new(ID) ->
mongoose_rdbms:execute(global, cluster_insert_new, [ID]).
Copy link
Member

Choose a reason for hiding this comment

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

Please just use execute_successfully in both queries for consistency.

@leszke leszke force-pushed the prepared-queries-mongoose-cluster-id branch 3 times, most recently from 5bb0113 to ef7ff4d Compare April 27, 2021 14:23
@leszke leszke force-pushed the prepared-queries-mongoose-cluster-id branch from ef7ff4d to 3f4b722 Compare April 27, 2021 15:12
Copy link
Member

@chrzaszcz chrzaszcz left a comment

Choose a reason for hiding this comment

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

Looks good!

@chrzaszcz chrzaszcz merged commit 7179360 into master Apr 28, 2021
@chrzaszcz chrzaszcz deleted the prepared-queries-mongoose-cluster-id branch April 28, 2021 08:49
@Premwoik Premwoik added this to the 5.0.0 milestone Oct 5, 2021
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.

4 participants