(Alexander Rubin) Lets say we have a table storing mail messages and we need to show user’s mailbox: messages sent “from” and “to” the specified user.
Tag: Open Source
Transactional memory resident tables with PBXT
(Shinguz) In his presentation about PBXT at the DOAG Conference 2010 Paul McCullagh was speaking about memory resident PBXT tables. They will be available in version 1.1 of the PBXT Storage Engine Plug-in. Memory resident PBXT tables should have similar characteristics like normal MySQL MEMORY table
Query caching with MySQL Connector/Python
(Geert JM Vanderkelen) This blog post shows how to create a cursor class for MySQL Connector/Python which will allow you to cache queries. It will hold the query itself and the result in a global variable.
MySQL Hotbackups with XtraBackup
(Sean Hull) Hotbackups are a staple of many different database platforms, but they remain sadly absent from the core MySQL distribution. Not to worry, the open-source XtraBackup utility has just arrived to rescue you.
PostgreSQL 9.0 pg_dump, pg_dumpall, pg_restore cheatsheet overview
(Leo Hsu and Regina Obe) Backup and Restore is probably the most important thing to know how to do when you have a database with data you care about.
Eliminating Duplicate Rows from MySQL Result Sets
(Rob Gravelle) The go to solution for removing duplicate rows from your result sets is to include the distinct keyword in your select statement. It tells the query engine to remove duplicates to produce a result set in which every row is unique. Did you know that the group by clause can also be used
Loose index scan vs. covered indexes in MySQL
(Alexander Rubin) Loose index scan in MySQL can really help optimizing “group by” queries in some cases (for example, if you have only min() and/or max() as your aggregate functions). For example, if you have this query (to find maximum delay for all US flights with departure on Sundays in 2010):
Advanced index analysis with mk-index-usage
(Baron Schwartz) The new release of Maatkit has a useful feature in mk-index-usage to help you determine how indexes are used in more flexible ways. The default report just prints out ALTER statements for removing unused indexes, which is nice, but it’s often helpful to ask more sophisticated questi
Filtering binary logs with MySQL Sandbox and replication
(Giuseppe Maxia) A few days ago, a friend of mine asked me if I knew of a way of filtering a bunch of binary logs, to extract only statements related to a single table. The task was about filtering a few hundred binary log files.
Lost innodb tables, xfs and binary grep
(Aurimas Mikalauskas) Before I start a story about the data recovery case I worked on yesterday, here’s a quick tip – having a database backup does not mean you can restore from it. Always verify your backup can be used to restore the database! If not automatically, do this manually, at least once a
