May 25, 2012

Post: Troubleshooting MySQL Memory Usage

… it is a lot larger problems with MySQL 5.5 with addition of user variables, stored procedures, prepared statements etc which can be a memory hog. My intent with this post is dual. I would encourage MySQL Team… and fixed. This is where your MySQL Support contract can be handy. Conclusion Understanding where MySQL can allocate memory can help us…

Post: How FLUSH TABLES WITH READ LOCK works with Innodb Tables

… on the table. mysql> show processlist; +——-+——+———–+———-+————+——+——————————+——————————+———–+—————+———–+ | Id | User | Host | db | … changing users, stored procedures etc (which are stored in MyISAM…

Comment: mysql-proxy, urgh performance and scalability ?

…. – Query Router. In addition it is better support stored-procedure and transparent between Mysql Server and application client. SQL Relay looks good, but…

Post: MySQL Stored Procedures problems and use practices

stored procedure calls. On the other hand Stored Procedures Indeed can help to Improve MySQL Performance. For DBT2 benchmarks we’ve tried a while back MySQL 5.0 was about 10% slower than 4.1 without stored procedures but was 20% faster if Stored Procedures are used…

Post: Statement based replication with Stored Functions, Triggers and Events

… the procedure itself. So in this case you don’t need to replicate all your stored procedures in your slaves servers. Example: mysql> create procedure this_pyear() BEGIN INSERT INTO t VALUES(YEAR(CURDATE())); END;// mysql> CALL this…

Post: Flexviews - part 3 - improving query performance using materialized views

…, Flexviews includes a MySQL stored procedure API, called the SQL_API which is used to define the view. These stored procedures maintain the Flexviews data… joins, is the value proposition for Flexviews. The flexviews.refresh() stored procedure The first parameter to flexviews.refresh() is the materialized view…

Post: Profiling MySQL stored routines

… an application based entirely on stored routines on MySQL side. Even though I haven’t worked much with stored procedures, I though it’s… row in set (0.00 sec) host # tail /var/log/mysql/mysql-slow.log # Time: 090115 2:25:28 # User@Host: me… that MySQL spends most of the time on, but I don’t want to go over the complicated logic of stored procedure just…

Post: 10+ Ways to Crash or Overload MySQL

… been normally treated very quickly by MySQL. The moment you give someone access to MySQL Server, all MySQL Security guarantees is you can… to run their queries. Stored Procedures – How much memory can stored procedure allocate ? say can you create 1000 variables in stored procedure and set 1M result…

Post: Can MySQL temporary tables be made safe for statement-based replication?

… whole transaction is inside a stored procedure? Whether this works or not depends, again, on how the stored procedure call is logged to the binary log. Let’s create a stored procedure to hold the transaction, which…) What you see depends on your version of MySQL, because the logging of stored procedures has changed over time. If just the CALL…

Post: Filtered MySQL Replication

… not a big fan of filtered or partial MySQL Replication (as of version MySQL 5.0) – there is enough gotchas with replication… them. For example stored procedures are handled (because binary logging is done on statements as executed inside stored procedures), however Stored Functions are not – so…