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

MariaDB - avoid using correlated sub-queries #14630

Merged
merged 11 commits into from
Sep 24, 2024

Commits on Sep 20, 2024

  1. Fixing an issue that was stopping the limit from being applied to MyS…

    …QL, it needs to wrap the query the same as all other DBs, however it needs to apply the where statement in a slightly different manner.
    mike12345567 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    efdfbe7 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Removing wrap for MySQL.

    mike12345567 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    b025246 View commit details
    Browse the repository at this point in the history
  2. Updates to limit the response of JSON_ARRAYAGG in mysql/mariaDB - rat…

    …her than using a limited sub-query which is dis-allowed in MySQL/MariaDB due to the nature of the correlated sub-query.
    mike12345567 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    676058b View commit details
    Browse the repository at this point in the history
  3. Adding test case.

    mike12345567 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    680c68a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    617b7df View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Configuration menu
    Copy the full SHA
    956df10 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'fix/mysql-correlated-queries' of github.com:Budibase/bu…

    …dibase into fix/mysql-correlated-queries
    mike12345567 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    385c274 View commit details
    Browse the repository at this point in the history
  3. Fixing test case.

    mike12345567 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    6a7959e View commit details
    Browse the repository at this point in the history
  4. Adding a separation for MariaDB and MySQL, mariaDB is the core of the…

    … problem, this solves for it by separating them and allowing us to use the special json_arrayagg for mariaDB, but use a correlated sub-query for MySQL.
    mike12345567 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    464f973 View commit details
    Browse the repository at this point in the history
  5. Fix for SQL server.

    mike12345567 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    c643c82 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    46e0f4c View commit details
    Browse the repository at this point in the history