Showing entries 36011 to 36020 of 44874
« 10 Newer Entries | 10 Older Entries »
What is the longest part of Innodb Recovery Process ?

In MySQL 4.1 and above the longest part of recovery after crash for Innodb tables could be UNDO stage - it was happening in foreground and was basically unbound - if you have large enough transaction which needed to be undone this could take long hours.
REDO stage on other hand always could be regulated by size of your Innodb log files so you could have it as large as you like. Read more about it here.

Since MySQL 5.0 the UNDO stage is running in background so it still can be the longest but would not keep server completely unusable (some limitations still apply though).

In the case I've been working on recently none of these parts was the longest one.
The server had about 65000 tables using innodb_file_per_table so "InnoDB: Reading tablespace information from the .ibd …

[Read more]
Large result sets vs. compression protocol

mysql_connect() function in PHP's MySQL interface (which for reference maps to mysql_real_connect() function in MySQL C API) has a $client_flags parameter since PHP 4.3.0. This parameter is barely known and almost always overlooked but in some cases it could provide a nice boost to your application.

There's a number of different flags that can be used. We're interested in a specific one, MYSQL_CLIENT_COMPRESS. This flag tells the client application to enable compression in the network protocol when talking to mysqld. It reduces network traffic but at the cost of some CPU time: server has to compress the data and client has to decompress it. So there's little sense in using it if your Web application is on the same host as the database.

When the database is on a dedicated server then compression essentially means trading CPU time (on both server and client) for network time. …

[Read more]
Making PBXT Fully Durable

Until now PBXT has been ACId (with a lower-case d). This is soon to change as I have had some weeks to work on a fully durable version of the transactional engine (http://www.primebase.com/xt).

My first concern in making PBXT fully durable was to what extent I would have to abandon the original "write-once" design. While there are a number of ways to implement durability, the only method used by databases (as far as I know) is the write-ahead log.

The obvious advantage of this method is that all changes can be flushed at once. However, this requires that all data be written twice: once to the log and after that, to the database itself.

My solution to this problem is a compromise, but I think it is a good one. In a nutshell: short records are written twice, and long records are written once. When it comes to durability, this compromise, I …

[Read more]
CHANGE MASTER does really what it says

So recently I found myself making a critical assumption that was incorrect and thought I would share in hopes that other people don't make the same mistake I did. I had helped a customer (who shall remain nameless) setup multi-master replication as a means for fail-over. Well, their network configuration changed such that one of the servers could not connect to the other. It was an easy enough fix. All I needed to do was to stop the slave, run CHANGE MASTER TO MASTER_HOST='192.168.1.123';, and start it back up right?

Wrong! Though the damage had already been done, I consulted the MySQL documentation which mentions that if you change the host of the master in this way, it assumes that the binary log file and position are no longer valid. Instead of throwing an error, it sets the master log file to '' and the position to 4. I'm …

[Read more]
CHANGE MASTER does really what it says

So recently I found myself making a critical assumption that was incorrect and thought I would share in hopes that other people don't make the same mistake I did. I had helped a customer (who shall remain nameless) setup multi-master replication as a means for fail-over. Well, their network configuration changed such that one of the servers could not connect to the other. It was an easy enough fix. All I needed to do was to stop the slave, run CHANGE MASTER TO MASTER_HOST='192.168.1.123';, and start it back up right?

Wrong! Though the damage had already been done, I consulted the MySQL documentation which mentions that if you change the host of the master in this way, it assumes that the binary log file and position are no longer valid. Instead of throwing an error, it sets the master log file to '' and the position to 4. I'm …

[Read more]
opentaps Framework Enhancements

As we head into the new year and to the next phase of development of the opentaps open source ERP and CRM system, there are several enhancements to the framework behind opentaps which we will be making. As you can see from this list, some of these enhancements will help make opentaps easier to use and to deploy, while others should open up new areas of possibility for our users:

New Forms and Document Management Tools

We plan on replacing xsl:fo with Jasper reports and iReport during the next year so that our users could easily customize all the forms and documents that their company needs, including orders, invoices, and receipts. We also hope to introduce a way for users to manage all these documents so that they no longer have to edit XML files.

Integrating Business Intelligence

We hope to integrate the new business intelligence tools in opentaps more deeply into the applications, rather …

[Read more]
Oracle and Linux: It's all about the money

I stumbled across this article today, which goes a long way toward explaining Oracle's affection for Linux. I fault Oracle for the way it went about embracing Linux, but I don't fault its financial acumen:

Last quarter, [Oracle] pointed out that its database market share actually tends to ...

Tutorial and session at MySQL Users Conference 2008

Well, it’s that time of the year once more. The time when someone starts planning for the Users Conference, having received an acceptance notice of a session proposal. This year it came earlier than usual, because the CfP was started one month earlier, and thus we have a list of tutorials ready before Christmas.

So, let me do some advertising.
I am going to co-present a full day tutorial with Jan Kneschke. MySQL Proxy, the complete tutorial which will cover all about MySQL Proxy, and it will guide users to the creation of Lua scripts. When I proposed it, Jay asked me and Jan if we have enough material to cover 6 hours. After having been in three presentations on this subject, I’d rather ask myself if I can manage to cover all we know (and all that Jan’s volcanic production is …

[Read more]
Query Profiling Tools ? part 1, mysqlsla

The “sla” in mysqlsla stands for “statement log analyzer”. This does a much better job than mysqldumpslow of analyzing your slow query log. In fact, you can sort by many different parameters — by sheer number of times the query shows up in the slow query log, by the total or average query [...]

These past weeks

Ever since I submitted the "External Language Stored Procedures" project which Eric and myself have been working on to be listed on FreshMeat, it has gained a small number of interested users and we have just started to get some feedback. Yay! Always nice to know when people are using your code. Okay, so one of the emails contained a feature request: Support for PHP stored procedures. I think I

Showing entries 36011 to 36020 of 44874
« 10 Newer Entries | 10 Older Entries »