hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Wordpress: indexing tables in MySQL database
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Wordpress: indexing tables in MySQL database

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-16-2011, 01:25 PM
fakingnews fakingnews is offline
Newbie
 
Join Date: Jan 2011
Location: New Delhi
Posts: 14
*

Wordpress: indexing tables in MySQL database


disclaimer: I'm not a software expert and has been using wordpress to run a website, which attracts decent traffic (around 20k views daily), which causes the site to become slow at peak hours. The hosting company support staff told me that there could be problem with my scripts, as they don't seem to be properly optimized. The staff especially cited the following result from the status report of the MySQL database:

Handler_read_rnd 1,482 M The number of requests to read a row based on a fixed position. This is high if you are doing a lot of queries that require sorting of the result. You probably have a lot of queries that require MySQL to scan whole tables or you have joins that don't use keys properly.
Handler_read_rnd_next 497 G The number of requests to read the next row in the data file. This is high if you are doing a lot of table scans. Generally this suggests that your tables are not properly indexed or that your queries are not written to take advantage of the indexes you have.

What should I do to properly index the table or use the keys properly, as is suggested above? I thought these issues would be taken care of automatically by Wordpress coding and scripting. Or is it a common problem on a Wordpress based site on shared hosting?

Reply With Quote


Sponsored Links
  #2  
Old 01-17-2011, 04:01 PM
Christian Little Christian Little is offline
Web Hosting Guru
 
Join Date: Jan 2011
Location: Vancouver, Canada
Posts: 329
A wordpress blog getting 20k views/day will be a huge drain on a shared server. Forget what they are telling you unless you've put a bunch of customized code into how your wordpress is working.

What I suggest is to download one of the caching plugins. What they do is created static html files of everypage on your site and wordpress will serve them instead. The cached files are updated whenever a post, template, or comment is updated/posted to your site usually. This basically eliminates all the mysql queries from running constantly as you'll have static html files being served and mysql only being touched when the site is actually being updated.

Reply With Quote
  #3  
Old 01-19-2011, 07:40 AM
exodia exodia is online now
Newbie
 
Join Date: Jan 2011
Posts: 21
why dont you use the subforum (job offers) to find somebody to assist.

Reply With Quote
Sponsored Links
  #4  
Old 01-19-2011, 10:21 PM
PaulM PaulM is offline
Aspiring Evangelist
 
Join Date: Jan 2008
Location: Adelaide, Australia
Posts: 428
As christian explained, you'll want to use caching as it sounds thats where the trouble lies. Theres also a few wordpress optimization plugins that do this and more.

__________________
<<Please see rules for signature setup>>

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find and replace in all tables of a MySQL database? KennyP Programming Discussion 7 05-28-2009 02:07 AM
MySQL Database not responding after adding an index to one of the tables yangyang2036 Programming Discussion 9 05-20-2009 08:10 AM
Optimize All Tables In A MySQL Database DjiXas Hosting Security and Technology 7 10-30-2008 07:47 AM
PHP/MySQL - Search database for tables with 'x' prefix P-nut Programming Discussion 6 05-04-2006 11:39 PM
Plesk, MySQL, import database tables How to? taltos1 Web Hosting 7 08-05-2003 05:21 PM

Related posts from TheWhir.com
Title Type Date Posted
Cloud Host Client Intellect Launches WordPress Cloud Hosting Service Web Hosting News 2012-04-03 13:38:49
Web Host Lightning Base Launches Version 2 of WordPress Hosting Web Hosting News 2012-02-01 12:29:53
Web Host Nexcess Launches Enterprise Managed Server Clusters for WordPress Web Hosting News 2012-01-30 11:28:59
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?