Planet MySQL Planet MySQL: Meta Deutsch Español Français Italiano 日本語 Русский Português 中文
10 Newer Entries Showing entries 31 to 40 of 53 10 Older Entries

Displaying posts with tag: production (reset)

Should you move from MyISAM to Innodb ?
+1 Vote Up -0Vote Down

There is significant portion of customers which are still using MyISAM when they come to us, so one of the big questions is when it is feasible to move to Innodb and when staying on MyISAM is preferred ?

I generally prefer to see Innodb as the main storage engine because it makes life much simpler in the end for most users - you do not get to deal with recovering tables on the crash or partially executed statements. Table locks is no more problem, hot backups are easy, though there are some important things which we have to consider on case by case basics before recommending the move.

Is MyISAM used as default or as a choice ? This is the most important question to ask upfront. Sometimes MyISAM is there just because it is default, in other cases this is deliberate choice with system being optimized to deal with MyISAM limits,

  [Read more...]
XtraDB storage engine release 1.0.2-2 (New Year edition)
+0 Vote Up -0Vote Down

Today we announce release 1.0.2-2 of our XtraDB storage engine.

Here is a list of enhancements:

  • split-buffer_pool_mutex

The patch splits global InnoDB buffer_pool mutex into several and eliminates waitings on flush IO and mutex when there is no enough free buffers. It helps if you have performance drops when data does not fit in memory.

InnoDB has a concurrent transaction limit of 1024 because in the standard InnoDB the number of undo slots is fixed value. This patch expands the maximum number of undo slots to 4072 and allows better utilizing modern hardware. (Thank

  [Read more...]
Goal driven performance optimization
+0 Vote Up -0Vote Down

When your goal is to optimize application performance it is very important to understand what goal do you really have. If you do not have a good understanding of the goal your performance optimization effort may well still bring its results but you may waste a lot of time before you reach same results as you would reach much sooner with focused approach.

The time is critical for many performance optimization tasks not only because of labor associated expenses but also because of the suffering - slow web site means your marketing budget is wasted, customer not completing purchases, users are leaving to competitors, all of this making the time truly critical matter.

So what can be the goal ? Generally I see there are 2 types of goals seen in practice. One is capacity goal this is when the system is generally overloaded so

  [Read more...]
Recovering CREATE TABLE statement from .frm file
+0 Vote Up -0Vote Down

So lets say you have .frm file for the table and you need to recover CREATE TABLE statement for this table. In particular when we do Innodb Recovery we often get .frm files and some mess in the Innodb tablespace from which we have to get data from. Of course we could relay on old backups (and we do ask for them for a different reason anyway) but there is never guaranty there were no schema changes in between.

So how to recover CREATE TABLE from .frm file ?

Recovering from .frm for Innodb Table

If we simply copy .frm file back to the database we will see the following MySQL creative error message:

PLAIN TEXT SQL:
  •   [Read more...]
    Announcing Percona XtraDB Storage Engine: a Drop-in Replacement for Standard InnoDB
    +1 Vote Up -0Vote Down

    Today we officially announce our new storage engine, "Percona XtraDB", which is based on the InnoDB storage engine. It's 100% backwards-compatible with standard InnoDB, so you can use it as a drop-in replacement in your current environment. It is designed to scale better on modern hardware, and includes a variety of other features useful in high performance environments.

    Percona XtraDB includes all of InnoDB's ACID-compliant design and advanced MVCC architecture, and adds features, more tunability, more metrics, more scalability on many cores, and better memory usage. We choose features and fixes based on customer requests and on our best judgment of real-world needs. We have not included all the InnoDB patches available. For example Google's well-known InnoDB patch set is

      [Read more...]
    SHOW OPEN TABLES - what is in your table cache
    +0 Vote Up -0Vote Down

    One command, which few people realize exists is SHOW OPEN TABLES - it allows you to examine what tables do you have open right now:

    PLAIN TEXT SQL:
  • mysql> SHOW open TABLES FROM test;
  • +----------+-------+--------+-------------+
  • | DATABASE | TABLE | In_use | Name_locked |
  • +----------+-------+--------+-------------+
  • | test     | a     |      3 |           0 |
  • +----------+-------+--------+-------------+
  • 1 row IN SET (0.00 sec)
  • This command lists all non-temporary tables in the table-cache, showing each of them only once (even if table is opened more than

      [Read more...]
    Reading MySQL Enterprise future…
    +0 Vote Up -0Vote Down

    Well, actually it is not reading future, but just mysql-5.1.30.rhel4.spec file from MySQL RedHat 4 SRPM.

    I found there few MySQL Enterprise Editions, namely:

    MySQL Enterprise Server - Advanced Edition
    MySQL Enterprise Server - Pro Edition
    MySQL Enterprise Server - Classic Edition

    What is difference ? Let's see.

    For MySQL Enterprise Server - Advanced Edition:
    %define PARTITION_BUILD 1
    %define INNODB_BUILD 1

    For MySQL Enterprise Server - Pro Edition:
    %define PARTITION_BUILD 0
    %define INNODB_BUILD 1
    So this one comes without Partitions.

    And MySQL Enterprise Server - Classic Edition
    %define PARTITION_BUILD 1
    %define INNODB_BUILD 0
    Which I am finding most interesting ... with Partitioning but without InnoDB ?


    Entry posted by Vadim |











      [Read more...]
    When to use Hardware upgrade instead of Software Optimization
    +0 Vote Up -0Vote Down

    One typical question which frequently pops up is whenever it is better to use hardware upgrade or optimize software more. I already wrote about it, for example here.

    Today I'll look at the same topic from the consultants view. When consultant should suggest hardware upgrade and when it is not in a simple checklist form.

    How good is hardware ? Sometimes people use so crappy hardware it would be much cheaper for them to upgrade before purchasing much of professional services. Though in some cases people like their system to be optimal and so they want to run it on some old box even if it costs them more to optimize it. It may be valid choice allowing to take a hardware

      [Read more...]
    Computing 95 percentile in MySQL
    +0 Vote Up -0Vote Down

    When doing performance analyzes you often would want to see 95 percentile, 99 percentile and similar values. The "average" is the evil of performance optimization and often as helpful as "average patient temperature in the hospital".

    Lets set you have 10000 page views or queries and have average response time of 1 second. What does it mean ? Really nothing - may be one page view was 10000 seconds and the rest was in low milliseconds or may be you had every single page view taking 1 second, which are completely different.

    You also do not really care about average performance - the goal of good user experience is majority of users to have good experience and average is not a good fit here. Defining your response time goal in 95 or 99 percentile is much better. Say you say 99 percentile response time should be one second, this means only 1 percent of

      [Read more...]
    MySQL for Hosting Providers - how do they manage ?
    +0 Vote Up -0Vote Down

    Working with number of hosting providers I always wonder how do they manage to keep things up given MySQL gives you so little ways to really restrict how much resources single user can consume. I have written over a year ago about 10+ ways to crash or overload MySQL and since that people have come to me and suggested more ways to do the same.

    This is huge hole in MySQL design, thinking little about users isolations and resource quotas and interesting enough I have not seen significant changes in fresh our MySQL 5.1 GA or even something major on the roadmap for future MySQL versions. May be Drizzle will give it a thought ? This surely would help adoption by (especially low end) Hosting Providers and remember this exactly where a lot of kids start to

      [Read more...]
    10 Newer Entries Showing entries 31 to 40 of 53 10 Older Entries

    Planet MySQL © 1995, 2014, Oracle Corporation and/or its affiliates   Legal Policies | Your Privacy Rights | Terms of Use

    Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.