How To Clean Up Your Magento Store’s Database Logs For Faster Performance

Share
Posted on February 2nd, 2012 | Posted by admin

Magik database backup extension – which will automatically backup your database

  • Use phpmyadmin and take the entire dump on your system
  • Use Magento’s built in profilers to export entire database.
  • Setup for automatic Magento database backup in Git

    Share
    Posted on May 25th, 2011 | Posted by admin

    Well, any version control system is great, at least in compare with none at all. But what’s happening with your database? Today I’ll show you how to create automated solution for backup and insertion of MySQL database into Git repository.

    Explanation and Prerequisites

    Explanation

    What I did was clone of existing Magento Git repository on development server, and then created cron task that dumps its current development database into local repository, commits changes, and then pushes them back to remote repository.
    Prerequisites

    First of all, I’ll explain this using our development server that runs on Linux. If you wish to follow this article, you’ll need Git, MySQL,SSH,Remote git repository (ours is at beanstalk) and crontab access on it.

    Usage of temporary tables in MySQL databases

    Share
    Posted on April 25th, 2011 | Posted by admin

    Hi! My recent project had some specific requirements regarding the work with database. Since DB server had some limitations (regarding number of queries), and fairly big number of queries that needed to be executed I created a solution that included temp tables. And now, I’d like to explain how to use them and why.

    Suppose that in your application, you need to execute a calculation on a set of tables. The usual approach is to create a query that defines the joins between multiple tables, and selects the data from the joined tables. The problem with that approach is that every time you call that the query, the tables have to be rejoined in order to create the result. And that is usually fairly resource hungry. Instead, you can get around the problem by putting the results into temporary table, so the values are there while the database connection lasts.

    Usage of database stored procedures

    Share
    Posted on April 19th, 2011 | Posted by admin

    Hello guys. Today I’ll try to explain 2 things. First WHY to use stored procedures. And second, HOW to use them. First of all, a small notice. I’ll explain the subject on PostgreSQL example, because of the fact that I used that language syntax most recently.

    So let’s begin with the question “Why?“.

    Depending on the client’s needs and his limitations sometimes you need to use them to decrease the number of queries to a minimum. An example of that is if you have a situation of network overhead, stored procedures come in handy to minimize the network traffic. Or on the other hand, sometimes you just need to move some of the database logic to a DB side. A good example of that would be if you have a “Cron job” that will clean (truncate) some of the database’s tables.

    Magento’s database layout and its EAV structure

    Share
    Posted on April 18th, 2011 | Posted by admin

    Greetings fellow developers! Today I’ll try to explain the principles of EAV system and Magento’s implementation of it. This is a tutorial / explenation for beginners, so please be patient and even try to draw the logic on a paper if you don’t understand it. A small notice before we start. I won’t use specific SQL query examples since this will be a simplified example of principles of the EAV.

    Page 2 of 3«123»