performance - what are my options as my mysql DB grows -


How can I improve this question? Please let me choose to tell all my options here as my social network DB is only getting bigger

This query 2.1231 seconds

  friend_friend.friendid, friend_reg_user. disp_name, friend_reg_user.pic_url taken Join joy Friend_reg_user.online friend_friend friend_friend.friendid = on friend_reg_user friend_reg_user.auto_id where userid = 1 and Friend_friendkstatus = 1 Ordide Diissi LIMIT 59535, 15 ######## ################################################# ################################################# ######################### # Id # SELECT_TYPE # Table # Type # possible_keys #s Capital # Key_len # Ref # rows # extra # ########### ############################# ################################################## ########################################### # 1 # Simple #friend_friend # Ref # userid # userid # 5 # constant # 59843 where # 1 # # simple use Friend_reg_user # Eq _ref # primary # primary # 4 # Friend_friendkfriendid # 1 # ########### ################################################# ################################################# ######################  

when my table says big a million or 2 million rows my choice What are you This table is used to determine who the user is

I know that a programmers that 8 million records in its database, and it really speed does not change too much, it is about creating the right indexes and ensures that you hold data in an efficient manner. (Numerical IDs for relationships are really useful)

In addition, your query is really barebones for the most part. Nothing is fancy It can only be your server latency.


Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -