If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How i Optimize my db i have a lot of record

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-12, 17:48
emrecanozkok emrecanozkok is offline
Registered User
 
Join Date: Jan 2012
Posts: 3
How i Optimize my db i have a lot of record

Hello first I should say that my english very bad im so sorry (im turkish)

my database have 2 table
example
1. table name users

user_id - user_rate - user_credit
1 2 10
2 2 10
3 3 10
4 4 10
2.table name log

liker_user liked_user
1 2
1 3
1 4
2 2
2 3
2 4
3 2
3 3
3 4

i have log table 10.000 + record (facebook page like desktop application work with php)


I'm doing query 2 times per second average

my host enrollment increases, slowing down

how i optimize my db or how i transform another mysql type

and need i move my db to vps ?

thanx for comment but im sorry my english
Reply With Quote
  #2 (permalink)  
Old 01-29-12, 19:13
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
do your tables have the correct indexes?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 01-29-12, 21:58
emrecanozkok emrecanozkok is offline
Registered User
 
Join Date: Jan 2012
Posts: 3
ii

i dont know

what is the index


im beginner in mysql and php but my application is growing rapidly

i need fix this problem but How ?

What are the advantages of using index?

thanks
Reply With Quote
  #4 (permalink)  
Old 01-29-12, 22:12
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
do a search for mysql optimization -- it will tell you which columns should be indexed
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 01-30-12, 07:53
emrecanozkok emrecanozkok is offline
Registered User
 
Join Date: Jan 2012
Posts: 3
thanx

Thanx for help


im searching
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On