php - How to search in MySQL in a 60G table containing 330M rows? -
i have table 60g , has 330m entries.
i must display on front-end web-app. on web-app there search function searches string pattern in every row of database table.
the problem search takes 10 min , makes mysql process freeze. looked solutions haven't found suitable one.
- in-memory database: database big (it goes 200 gb - 60gb @ moment)
- split table table each month put these on 6 ssds (i need data half year) it's possible search parallel on 6 ssd
- reduce data amount (?)
image here: http://i.stack.imgur.com/q2tyd.png
if using implicit cursor search threw db consider closing after every 50 rows reopening @ row stopped at.
Comments
Post a Comment