Saturday I was in my favourite grocery store, standing in the line, browsing the net on my phone. I read Vadim Tkachenko‘s blog post about Measuring Percona Server Docker CPU/network overhead and his findings were the opposite than mine – he didn’t found any measurable difference. Reading his post, he did found huge impact in networking which I didn’t […]
This is a repost of Otto Kekäläinen's blog of the MariaDB foundations work in 2015.
The mariadb.org
website had over one million page views in 2015, a growth of
about 9% since 2014. Good growth has been visible all over the
MariaDB ecosystem and we can conclude that 2015 was a successful
year for MariaDB.
Increased adoptionMariaDB was included for the
first time in an official Debian release (version 8.0 "Jessie")
and there has been strong adoption of MariaDB 10.0 in Linux
distributions that already shipped 5.5. MariaDB is now available
from all major Linux distributions including SUSE, RedHat, Debian
and Ubuntu. Adoption of MariaDB in other platforms also
increased, and MariaDB is now available as a database …
Next article from the MySQL 5.7 Performance stories, now about OLTP_RW scalability (if you missed any previous ones, see 1.6M SQL Query/sec (QPS) with MySQL 5.7, 1M SQL Query/sec on mixed OLTP_RO / true Point-Selects performance / over 100K Connect/sec Rate / …
[Read more]
If you store data with a parent-child relationship in MySQL
tables, then you may want to identify and/or delete orphaned rows
from the child table. An orphaned row is defined as a child row
that references a non-existant parent row. If you enforce the
parent-child relationship with a foreign key constraint on the
child table then orphans are less likely to occur, but you can
still end up with orphans; for example if a user disables
foreign_key_checks in a session and deletes a parent
row. If you choose not to create foreign keys in your database in
order to avoid the performance overhead, then you are at higher
risk of having orphaned rows.
Finding orphaned rows
Finding orphaned rows is fairly simple either using an exclusion
join or a NOT EXISTS query.
Using the sakila database, here are two queries to …
[Read more]It has been seven years since the last time I blogged about generated columns, and a lot has happened -- now both MariaDB and MySQL support them. So it's time to look again, see how well they're doing, and compare to the SQL standard's Optional feature T175 Generated columns.
This is not an introductory description or an explanation why you'd want to use generated columns rather than (say) triggers and views. For that, I'd recommend the relevant manuals or the blog posts by Alexander Rubin and Anders Karlsson.
The Generation Clause
Standard …[Read more]
Within the MySQL team, we’re extremely excited about Group Replication! More and more of our users are also starting to become aware of this exciting feature–which offers native (virtually) synchronous replication with support for multi-master or active/active update-anywhere replication clusters. Our developers and users alike are eager to see easy, native HA come to MySQL!…
Whenever you need to increment or decrement value of column in database then you do not need to first fetch that record and then update so that way we will make long code and very hard code so basically you can increment and decrement by using increment and decrement statment of laravel query
UPDATE: Starting with MySQL 8.0.16 we have introduced the new
minimal tar ball distribution. Take a look here.
MySQL is known and famous for it’s simplicity and small size,
especially compared to other RDBMSs. But what if you want to
deploy on tiny hardware? I mean something even smaller than
RaspberryPi? I tested three steps to make the MySQL footprint as
small as possible. All my tests were compiled for Oracle Linux 7
on x64 platform. I did not test any ARM cross compile. And these
are the steps:
- Compile my own binary
- Remove all unnecessary tools/files
- Strip symbol information from binary
Let’s take a closer look at the tree steps.
Compile my own binary MySQL is available as a source release.
Using that you can configure the make process. That is documented
pretty …
The MySQL team has been maintaining a MySQL image on Docker. They have been listening to requests from the community and reacting quickly. So far, they have fixed two bugs that I reported and introduced a feature request that I suggested to make the server more secure.
Thanks, folks!
My latest request was about password management in a MySQL container. I have mentioned in previous posts the compatibility problems introduced by MySQL 5.7 security enhancements. Let me recap the main issues here:
MySQL is secure by default.
The recommended method to install MySQL is mysqld
--initialize, which will generate a random password that the DBA will
then use to access the …
In a recent post the MySQL product managers asked the community for feedback about proposed new defaults. One of the proposals is to make log-slave-updates on by default.
There are other important options that require some debate. They all look reasonable to me. This one, instead, which implies funnelling the replication events in a slave to its binary log, is questionable.
Let's start for the reason why it is a good idea. The scenario in which it makes sense is when you want a slave to be a master of one or more slaves. This is a common scenario in many cases where you need …
[Read more]