Can't find what you are looking for ?
Google
 



Showing posts with label Database. Show all posts
Showing posts with label Database. Show all posts

Friday, September 4, 2009

Wordpress Plugin: Take control of your database access

Wordpress depends on the Database for almost everything. All the values your enter, all your content, everything that goes to make your blog is actually stored in a Database, mostly MySql. It is very much possible to use a Database connectivity frontend, typically provided by your hosting service, but it requires somebody with technical talent to make that happen. Instead, why not try and use a tool from within your Wordpress to make this happen.
Well, there is a Wordpress Plugin that can make this happen, and it is called WP-DBManager 2.50 (available at this link)

Manages your Wordpress database. Allows you to optimize database, repair database, backup database, restore database, delete backup database , drop/empty tables and run selected queries. Supports automatic scheduling of backing up and optimizing of database.


Go, ahead, and take control of the DB. Remember, for a Wordpress site, the Database communication can make or break a site in terms of performance, so you should understand more about how your Database connectivity works.

Ad: Click Here to learn more about re-seller sites!

Monday, August 3, 2009

Wordpress Optimization Tool: DB Manager

Part of the process for optimizing your Wordpress account is by checking all your database queries, determining the frequency at which they are called, and whether your database server is getting called too often. But it is not easy to do this unless you have a tool that will provide you this information. One such tool is called WP-DBManager 2.50 (available at this site):

Manages your Wordpress database. Allows you to optimize database, repair database, backup database, restore database, delete backup database , drop/empty tables and run selected queries. Supports automatic scheduling of backing up and optimizing of database.

Wordpress Optimization Tool: SQL Monitor

One of the ways in which you can optimize the performance of your Wordpress site is by reviewing the processing of database calls in terms of frequency of such queries, the number of such calls being made, the performance of these calls, how optimized are they, and so on. It is not easy to determine all these numbers, and you will need a tool to help you determine these numbers. So, here is SQL Mintor (link to page)

WordPress can provide only the list of the queries and the developer has to manually run every query and analyze it. Very boring, isn't it? SQLMon tries to help the developers and analyzes the query itself, reporting everything that needs attention.
The plugin is perfect for WordPress developers, plugin and theme developers and site administrators who are trying to find out why the blog is too slow

Sunday, August 2, 2009

Optimizing your Wordpress account - 2

A few weeks back, I had written about how to take some basic steps towards optimizing your Wordpress account. Imagine what would happen if more people started promoting your Wordpress Blog, or wonders of wonders, it appears on the front page of Digg or Slashdot. In such cases, unless you have optimized your Wordpress configuration already, you can be pretty much sure that your account will get to a state where the server is not able to handle the load, and will shut down; further if your account is on a shared server, you might have some uncomfortable queries from your host.
So, here are some points on how to optimize your account:
1. Since Wordpress works on a database system, it pulls every bit of content from the server. If there are a large number of requests for your blog, your server has to make that many DB queries to fetch the content. This puts a lot of stress on your server. User a Super Cache plugin to Cache some of the load and serve static HTML files instead of querying the DB (link to plugin, and page).
2. When you serve various files such as binaries, videos, images, scripts, etc from your server, it becomes slow. Place them on other servers, so that the load on your server is reduced. For example, you can get videos from Youtube and Photos from Flickr, and also, you can even hire some hosting space on another server or on a service such as Amazon S3 for this purpose.
3. If you are more advanced, look at your server logs; it may be possible to determine multiple requests from a bot or script that is of no good, blocking these may make your server behave a bit better
4. Look to get stats on how your web page is loading. If it takes a lot of time to load your page, there may be a lot of plugins working, or scripts loading, and so on. Some tools you can use for this purpose are - LiveHTTPHeaders (link, displays the HTTP headers), Firebug (link, Look at loading times for various artifacts on a page),
5. Inside your wp-config.php file, remove some of the DB calls that are not necessary. For example, hard-code your Template Path, Stylesheet path (link to relevant site). You will get some improvements.
6. Review your themes. Some themes call a lot of graphics, and overall call a lot of files. If your CSS files are divided into multiple files, combine them. Replace graphics wherever possible with text.
7. Review the plugins your are using to see whether they are required. Plugins can make your site much slower, especially if they do a lot of DB access and inefficient. If you are advanced technically, monitor the performance of your plugins.
8. Refer to this quick cheat sheet for DB optimization (link to cheat sheet)
9. Reduce the number of posts on the front page of your blog. Typically, Wordpress gives you 10 posts on your front page, you should reduce this to 3-4.
10. Use WP's Built in Object Cache as described on this page (link). From the same site, refer to the MySQL Query Cache.
11. For some detailed technical analysis of what can be done (link)
12. Clean Options (Finds orphaned options and allows for their removal from the wp_ options table) - Get it from this page
13. The combating comment spam page on Wordpress.org (link). If you have a good blog which is getting popular, increase in spam is only to be expected. Akismet filters out most comment spam, but just getting it into the junk spam list also adds some load to your server.
14. Page with 5 tips for making your Blog Digg / Slashdot proof (link)
15. High Traffic Tips For WordPress on Wordpress.org Codex (link)

If you know more ways beyond this, please do let me know.