Tag: Open Source

Community

Handling Slow Processes in MySQL

(Rob Gravelle) Viewing the process list is a key step in debugging many common server problems, including bottlenecks, poor performance, deadlocks, connection issues, and many others. For that reason, knowing how to bring up relevant information on running processes is crucially important. In today’

Community

On Long Queries/Stored Procedures

(Chris Travers) In general, in most languages, programmers try to keep their subroutines down to a couple screens in size. This helps, among other things, with readability and ease at debugging. Many SQL queries are significantly longer than that. I have queries which are over 100 lines long in L

Community

PHP for MySQL Striped View

(Michael McLaughlin) Back in May I explained how to create MySQL striped views with session variables. A couple folks wanted to know how to implement them through PHP programs. The trick is sharing the same connection between a call to the function before a query against the striped view.

Community

Why I Don’t Use Sysdate in MySQL

(Ike Walker) When I first started using MySQL, I was happy to see that MySQL had the familiar SYSDATE() function that I’d been using for years in Oracle. I wrote a bunch of code using SYSDATE() in MySQL, and then one day I noticed that my slave database sometimes had higher timestamp values than the