MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
Sergei Petrunia 90ba999e80 MDEV-25020: Range optimizer regression for key IN (const, ....)
(addressed review input)
The issue was introduced by @@optimizer_max_sel_arg_weight code.
key_or() calls SEL_ARG::update_weight_locally().  That function
takes O(tree->elements) time.
Without that call, key_or(big_tree, one_element_tree) would take
O(log(big_tree)) when one_element_tree doesn't overlap with elements
of big_tree.
This means, update_weight_locally() can cause a big slowdown.

The fix:
1. key_or() actually doesn't need to call update_weight_locally().
  It calls SEL_ARG::tree_delete() and SEL_ARG::insert(). These functions
  update SEL_ARG::weight.
  It also manipulates the SEL_ARG objects directly, but these
  modifications do not change the weight of the tree.
  I've just removed the update_weight_locally() call.
2. and_all_keys() also calls update_weight_locally(). It manipulates the
  SEL_ARG graph directly.
  Removed that call and added the code to update the SEL_ARG graph weight.

Tests main.range and main.range_not_embedded already contain the queries
that have test coverage for the affected code.
2022-08-01 14:29:02 +03:00
.github Revert "Add Pull Request template file to the MariaDB/server repository" 2021-05-27 15:43:31 +03:00
BUILD Merge 10.3 into 10.4 2022-03-29 11:13:18 +03:00
client Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
cmake Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
dbug Merge 10.4 into 10.5 2022-07-01 14:42:02 +03:00
debian Merge 10.4 into 10.5 2022-06-27 10:51:20 +03:00
Docs Clean up logcheck.ignore.* configs and unify MariaDB.org links with https 2020-04-23 10:07:07 +03:00
extra Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
include MDEV-25785 Add support for OpenSSL 3.0 2022-07-04 12:49:11 +02:00
libmariadb@d12fd88b6c Fix most clang-15 -Wunused-but-set-variable 2022-07-01 09:48:36 +03:00
libmysqld Merge branch '10.4' into 10.5 2022-02-01 20:33:04 +01:00
libservices Add build on AIX 2020-12-16 08:07:04 +11:00
man MDEV-22023 Update man page NAME section to say MariaDB instead of MySQL 2022-06-09 09:08:03 +10:00
mysql-test Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
mysys Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
mysys_ssl MDEV-27778 md5 in FIPS crashes with OpenSSL 3.0.0 2022-07-04 12:49:11 +02:00
plugin Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
randgen/conf Group commit for maria engine. 2010-02-12 15:12:28 +02:00
scripts Merge 10.4 into 10.5 2022-07-01 14:42:02 +03:00
sql MDEV-25020: Range optimizer regression for key IN (const, ....) 2022-08-01 14:29:02 +03:00
sql-bench Merge 10.4 into 10.5 2020-07-02 09:41:44 +03:00
sql-common Merge branch '10.4' into 10.5 2022-05-09 22:04:06 +02:00
storage Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
strings Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
support-files Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
tests Merge branch '10.4' into 10.5 2022-05-09 22:04:06 +02:00
tpool MDEV-28920 Rescheduling of innodb_stats_func() missing 2022-06-23 05:53:55 +02:00
unittest MDEV-25785 Add support for OpenSSL 3.0 2022-07-04 12:49:11 +02:00
vio MDEV-28255 "Error" instead of NULL in P_S.THREADS_CONNECTION_TYPE for background threads 2022-04-09 10:46:10 +02:00
win MDEV-27446 Windows, MSI - fix redistributable merge module path for VS2022 2022-01-08 19:56:13 +01:00
wsrep-lib@8bfce04189 Update wsrep-lib 2022-05-03 09:02:13 +03:00
zlib zlib: remove redundant and generated files 2022-07-26 16:46:27 +02:00
.clang-format Merge 10.4 into 10.5 2019-12-27 21:17:16 +02:00
.gitattributes MDEV-27494 Rename .ic files to .inl 2022-01-17 16:41:51 +01:00
.gitignore Merge branch '10.4' into 10.5 2022-05-09 22:04:06 +02:00
.gitmodules Add stub for building ColumnStore 2020-06-19 21:04:17 +02:00
appveyor.yml Fix typo in appveyor.yml 2022-07-04 19:24:58 +02:00
BUILD-CMAKE Minor spelling fixes in code comments, docs and output 2018-01-12 16:49:02 +02:00
CMakeLists.txt Merge 10.4 into 10.5 2022-04-21 15:33:50 +03:00
config.h.cmake Merge branch '10.4' into 10.5 2022-05-09 22:04:06 +02:00
configure.cmake Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
CONTRIBUTING.md Remove mention of Freenode 2021-09-22 07:15:08 +02:00
COPYING Update FSF Address 2019-05-11 21:29:06 +03:00
CREDITS Update contributors 2022-03-23 10:47:27 +11:00
INSTALL-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
INSTALL-WIN-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
KNOWN_BUGS.txt Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
README.md Remove mention of Freenode 2021-09-22 07:15:08 +02:00
THIRDPARTY Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
VERSION bump the VERSION 2022-05-20 12:05:54 -04:00

Code status:

  • Appveyor CI status ci.appveyor.com

MariaDB: The open source relational database

MariaDB was designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB Foundation and the MariaDB Corporation. Please read the CREDITS file for details about the MariaDB Foundation, and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Corporation, the MariaDB Foundation and by many people in the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle Corporation, Inc. For a list of developers and other contributors, see the Credits appendix. You can also run 'SHOW authors' to get a list of active contributors.

A description of the MariaDB project and a manual can be found at:

https://mariadb.org

https://mariadb.com/kb/en/

https://mariadb.com/kb/en/mariadb-vs-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

https://mariadb.com/kb/en/new-and-old-releases/

Help

More help is available from the Maria Discuss mailing list https://launchpad.net/~maria-discuss, MariaDB's Zulip instance, https://mariadb.zulipchat.com/

Live QA for beginner contributors

MariaDB has a dedicated time each week when we answer new contributor questions live on Zulip. From 8:00 to 10:00 UTC on Mondays, and 10:00 to 12:00 UTC on Thursdays, anyone can ask any questions theyd like, and a live developer will be available to assist.

New contributors can ask questions any time, but we will provide immediate feedback during that interval.

Licensing


NOTE:

MariaDB is specifically available only under version 2 of the GNU General Public License (GPLv2). (I.e. Without the "any later version" clause.) This is inherited from MySQL. Please see the README file in the MySQL distribution for more information.

License information can be found in the COPYING file. Third party license information can be found in the THIRDPARTY file.


Bug Reports

Bug and/or error reports regarding MariaDB should be submitted at: https://jira.mariadb.org

For reporting security vulnerabilities see: https://mariadb.org/about/security-policy/

The code for MariaDB, including all revision history, can be found at: https://github.com/MariaDB/server