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
Alexander Barkov c55f24cd99 MDEV-23162 Improve Protocol performance for numeric data
An alternative implementation (replacing the one based on repertoire).

This implementation makes Field send itself to Protocol_text using
data type specific Protocol methods rather than field->val_str()
followed by protocol_text->store_str().

As now Field sends itself in the same way to all protocol types
(e.g. Protocol_binary, Protocol_text, Protocol_local),
the method Field::send_binary() was renamed just to Field::send().

Note, this change introduces symmetry between Field and Item,
because Items also send themself using a single method Item::send(),
which is used for *all* protocol types.

Performance improvement is achieved by the fact that Protocol_text
implements these data type specific methods using store_numeric_string_aux()
rather than store_string_aux(). The conversion now happens only when
character_set_results is not ASCII compatible character sets
(e.g. UCS2, UTF16, UTF32).

In the old code (before any MDEV-23162 work, e.g. as of 10.5.4),
Protocol_text::store(Field*) used val_str() for all data types.
So the execution went through the character set conversion routines
even for numeric and temporal data types.

Benchmarking summary (see  details in MDEV-23478):

The new approach stably demonstrates additional improvement comparing
to the previous implementation (the smaller time - the better):

Original   - the commit before MDEV-23162
             be98036f25

        1m9.336s
        1m9.290s
        1m9.300s

MDEV-23162 - the repertoire optimization

        1m6.101s
        1m5.988s
        1m6.264s

MDEV-23478 - this commit

        1m2.150s
        1m2.079s
        1m2.099s
2020-08-14 10:07:03 +04:00
.github Add a Github CODEOWNERS file to project 2020-08-14 09:03:34 +10:00
BUILD
client Merge 10.4 into 10.5 2020-08-01 14:42:51 +03:00
cmake CPackRPM support for Recommends: 2020-08-07 13:36:11 +02:00
dbug
debian Merge mariadb-10.5.5 2020-08-10 21:11:54 +03:00
Docs
extra MDEV-23379 Deprecate&ignore InnoDB concurrency throttling parameters 2020-08-04 06:59:29 +03:00
include Merge 10.4 into 10.5 2020-08-10 21:38:55 +03:00
libmariadb@a746c3af44 C/C v3.1.9 2020-08-02 11:18:30 +02:00
libmysqld Merge branch '10.4' into 10.5 2020-08-04 17:24:15 +02:00
libservices
man Merge branch '10.4' into 10.5 2020-08-04 17:24:15 +02:00
mysql-test Merge 10.4 into 10.5 2020-08-11 11:12:45 +03:00
mysys Merge branch '10.4' into 10.5 2020-08-07 13:43:08 +02:00
mysys_ssl
plugin MDEV-23054 Assertion `!item->null_value' failed in Type_handler_inet6::make_sort_key_part (#2) 2020-08-11 12:35:19 +04:00
randgen/conf
scripts Merge branch '10.4' into 10.5 2020-08-04 17:24:15 +02:00
sql MDEV-23162 Improve Protocol performance for numeric data 2020-08-14 10:07:03 +04:00
sql-bench
sql-common Merge 10.4 into 10.5 2020-08-01 14:42:51 +03:00
storage Merge 10.4 into 10.5 2020-08-10 21:38:55 +03:00
strings Merge 10.4 into 10.5 2020-08-10 21:38:55 +03:00
support-files Merge branch '10.4' into 10.5 2020-08-04 17:24:15 +02:00
tests
tpool
unittest
vio Merge 10.4 into 10.5 2020-08-10 21:38:55 +03:00
win MDEV-23462 Upgrade wizard not offered during 10.5 MSI installation on Windows 2020-08-12 21:38:03 +02:00
wsrep-lib@ae4e58ba03
zlib
.clang-format
.gitattributes
.gitignore
.gitmodules
.travis.compiler.sh
.travis.yml
appveyor.yml
BUILD-CMAKE
CMakeLists.txt
config.h.cmake Merge branch '10.4' into 10.5 2020-08-04 17:24:15 +02:00
configure.cmake Merge branch '10.4' into 10.5 2020-08-04 17:24:15 +02:00
CONTRIBUTING.md
COPYING
CREDITS
EXCEPTIONS-CLIENT
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md
THIRDPARTY
VERSION bump the VERSION 2020-08-10 10:37:16 -04:00

Code status:

  • Travis CI status travis-ci.org (10.5 branch)
  • 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/ and the #maria IRC channel on Freenode.

Live QA for beginner contributors

MariaDB has a dedicated time each week when we answer new contributor questions live on Zulip and IRC. 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