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

Prepared queries pubsub #3074

Merged
merged 15 commits into from
Apr 8, 2021
Merged

Prepared queries pubsub #3074

merged 15 commits into from
Apr 8, 2021

Commits on Mar 12, 2021

  1. Configuration menu
    Copy the full SHA
    09a1c5c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ba8e642 View commit details
    Browse the repository at this point in the history
  3. satisfy elvis

    leszke committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    4abf268 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    96dc091 View commit details
    Browse the repository at this point in the history
  5. satisfy dialyzer

    leszke committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    6880eb1 View commit details
    Browse the repository at this point in the history
  6. apply review

    leszke committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    d3ae027 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c585fc9 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2021

  1. wrap queries execution in execute_* functions with specs; minor fixes…

    … for mssql and mysql
    leszke committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    2964543 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2021

  1. apply comments

    leszke committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    995641b View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2021

  1. Merge pull request #3047 from esl/lw-prepared-queries-pubsub

    prepared queries pubsub
    chrzaszcz authored Mar 31, 2021
    Configuration menu
    Copy the full SHA
    bf53762 View commit details
    Browse the repository at this point in the history
  2. Use prepared queries for get_items

    - Unchanged behaviour without item ids
    - Slight changes if item ids are provided:
      - Results are fetched one by one - should be fast enough
        as there shouldn't be too many IDs and there is a way to limit this.
      - Results have the same order as item ids - this is more intuitive
        for the end user, XEP-0060 does not specify this
      - max_items with item ids is a combination not mentioned in the XEP,
        but still supported for completeness.
    chrzaszcz committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    0a6b07d View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2021

  1. Use prepared queries for set_node

    - Separate INSERT and SELECT to work on all DBs
    - SELECT the entire row as this query is already prepared
        and is not much more costly
    chrzaszcz committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    85547eb View commit details
    Browse the repository at this point in the history
  2. Use prepared queries for 'set_parents'

    - Insert parents one by one
    - Always delete old parents on update to prevent the corner case
        when all aprents are deleted.
    chrzaszcz committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    de3589b View commit details
    Browse the repository at this point in the history
  3. Use prepared queries for selecting children and parent nodes

    Traverse nodes one by one - it might be slower,
      but complex collection structures shouldn't be used frequently.
    chrzaszcz committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    ca8c114 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #3065 from esl/prepared-queries-pubsub-2

    Prepared queries for PubSub - part 2
    leszke authored Apr 7, 2021
    Configuration menu
    Copy the full SHA
    ac21acf View commit details
    Browse the repository at this point in the history