If table is partitioned then that makes
it easy to maintain. Table has grown so huge and the backups are
just keep running long then probably you need to think of
archival or purge.
Purge the data if you don't want data from old partitions
just by doing truncate or drop of those partitions which
completes momentarily without locking the table for a long
time
Archival can be done couple of ways.
We can take mysqldump (preferably from a slave) with a
where condition to filter out the data you don't want to copy.
And then import the dump file to archive database. check this
link out for mysqldump with where clause .. and once data is
copied, the …
If a table is partitioned then that makes it easy to maintain.
Table has grown so huge and the backups are just keep running
long then probably you need to think of archival or purge.
Purge the data if you don't want data from old partitions
just by doing truncate or drop of those partitions which
completes momentarily without locking the table for a long
time
Archival can be done couple of ways.
We can take mysqldump (preferably from a slave) with a
where condition to filter out the data you don't want to copy.
And then import the dump file to archive database. check this
link out for mysqldump with where clause .. and once data is
copied, …
So you want to contribute to OpenStack? I can help!
For the last year or so I have been involved with OpenStack and more specifically the Trove (DBaaS) project as sort of an ambassador for Percona, contributing bits of knowledge, help and debugging wherever I could and thought I would share some of my experience with others that wanted to get involved with OpenStack development, documentation, testing, etc. Getting started with OpenStack contributions is also the idea behind my talk next month at Percona OpenStack Live 2015. (Percona Live attendees have access to OpenStack Live)
Back at the last OpenStack Conference and Design Summit in Paris last November, I had the amazing opportunity to attend the two-day …
[Read more]Wed, 2015-03-18 10:55geoff_montee_g
MariaDB Galera Cluster is part of the easily deployed High Availability product MariaDB Enterprise Cluster. This blog raises a question about the behaviour of the bootstrapping method.
Old Bootstrapping Method
When Galera was first released, the usual method used to bootstrap a cluster was to set wsrep_cluster_address to 'gcomm://'. With no other node addresses specified in wsrep_cluster_address, the node would form its own cluster:
[gmontee@localhost ~]$ sudo service mysql start --wsrep_cluster_address='gcomm://' Starting MySQL.... [ OK ] [gmontee@localhost ~]$ mysql -u root --execute="SHOW GLOBAL STATUS WHERE Variable_name …[Read more]
JavaScript has emerged in the past couple years as the de facto expression of next generation web technologies, and a critical component of HTML5 technologies – along with CSS and JQuery. JavaScript is really ubiquitous – it really is showing up everywhere! There are many other reasons why JavaScript and JS-based tools are becoming the wave of the future. JavaScript is the #1 most-used language on GitHub, and this trend is only going to increase. As one article put it, “JavaScript is the number one …
[Read more]In addition to our general CJK support, as detailed in this blog post, we’ve also added a MeCab parser. MeCab is a Japanese morphological analyzer, and we now have a full-text plugin parser based on it!
How Would I Use It?
- Set the mecab_rc_file option — mecab_rc_file is a read-only system variable pertaining to the MeCab parser. The mecabrc file that it points to is a configuration file required by MeCab, …
Finely tune your query writing and database performance with tips from the experts.
MySQL offers a few different types of indexes and uses them in a variety of ways. There’s a lot to know about the various kinds of indexes and how they interact with the storage engines, and it’s all very important for query optimization. A few examples are listed below:
- The “leftmost prefix rule”
- Clustered primary indexes versus secondary indexes
- B-Tree and hash
- New types of indexes such as LSM and Fractal Trees
- Newer features in the query optimizer and executor in MySQL 5.6 and 5.7
You will leave this webinar with a better understanding of how MySQL and its storage engines use indexes to speed up queries, as well as how you can improve query performance with basic and advanced index optimizations. Register below, and we will send you a copy of the recording and slide …
[Read more]
When reading a MySQL Query Execution Plan (QEP) produced by the
EXPLAIN command, generally one of the first
observations is to validate an index is being used per table
(i.e. per row of output). In MySQL, this is observed with the
key
column.
In the following two simple single table examples we see the use of the PRIMARY key. To the untrained eye this may lead to assume that the right index is being used.
Example 1
+----+-------------+----------------+-------+---------------+---------+---------+------+------+-------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+----------------+-------+---------------+---------+---------+------+------+-------------+ | 1 | SIMPLE | txxxxxxxxxxxx | index | NULL | PRIMARY | 4 | NULL | 100 | Using …[Read more]
MySQL QA Episode #1: Bash/GNU Tools & Linux Upskill & Scripting Fun
This episode consists of 13 parts, and an introduction. See videos below
In HD quality (set your player to 720p!)
Introduction
Part 1: echo, ls, cp, rm, vi, cat, df, du, tee, cd, clear, uname, date, time, cat, mkdir
Part 2: find, wc, sort, shuf, tr, mkdir, man, more
Part 3: Redirection, tee, stdout, stderr, /dev/null, cat
Part 4: Vars, ‘ vs “, $0, $$, $!, screen, chmod, chown, export, set, whoami, sleep, kill, sh, grep, sudo, su, pwd
Part 5: grep, regex (regular expressions), tr
Part 6: sed, regex (regular expressions)
Part 7: awk
Part 8: xargs
Part 9: subshells, shells, …
[Read more]MariaDB CONNECT Storage Engine allows to access a JSON file as if it was a local table. The mapping between a hierarchical structure and a relational structure is not ‘natural’ and needs to be defined. To achieve that we need a specific syntax. We associate with each column a ‘field_format’ attribute. This ‘field_format’ column attribute [...]