Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-20-2018, 11:32 AM   #1
freecartoonporn
Confirmed User
 
freecartoonporn's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
full text search, what are you using ?

i am using mysql native full text search. but increased traffic is crashing my mysql., and server load is fucking high too, eben on 64 gig box with ssd.

i used sphinx before on different project and it was pain in the ass, taking my server load to the roof. eating all my cpu.

i heard good things about elasticsearch, but looks difficult to implement.

or is it time to scale horizontally ? and throw more servers., and do master slave replication in mysql.

how many servers does the big sites own ? under 10k alexa sites ?

thanks for your time.

i have around 5 mil records and i only need to search title which is varchar 255 .
why the fuck this shit has to be so difficult for dbms.,

one of these days i am gonna code my own fts search engine.,
freecartoonporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-20-2018, 03:02 PM   #2
kjs
Confirmed User
 
Industry Role:
Join Date: Jan 2014
Location: West Coast
Posts: 167
just use https://elastic.co
kjs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-20-2018, 03:27 PM   #3
sarettah
I'll make you famous
 
Industry Role:
Join Date: Oct 2002
Posts: 13,947
Quote:
Originally Posted by freecartoonporn View Post
i have around 5 mil records and i only need to search title which is varchar 255 .
why the fuck this shit has to be so difficult for dbms.,
You would probably be better off NOT using full text search and just using a like statement instead. Full text search has a lot of overhead to it that should not be needed for just a 255 char field.

Do some testing between full text search and using a like statement.

If you can, index the title too.

All strictly imho, of course.

.
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-20-2018, 06:49 PM   #4
freecartoonporn
Confirmed User
 
freecartoonporn's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
Quote:
Originally Posted by kjs View Post
it looks like hosted elastic search.

Quote:
Originally Posted by sarettah View Post
You would probably be better off NOT using full text search and just using a like statement instead. Full text search has a lot of overhead to it that should not be needed for just a 255 char field.

Do some testing between full text search and using a like statement.

If you can, index the title too.

All strictly imho, of course.

.
nope, full text search has more performance than like queries,
freecartoonporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-20-2018, 07:50 PM   #5
iceboi
Confirmed User
 
Industry Role:
Join Date: Oct 2017
Posts: 302
I use elastic search on 15 million records - 64gb ram and it performs great. The index doesn't need so much ram though. If it's too hard to set up, then go with the hosted version or you can check out algolia but it can get crazy expensive but might be worth it depending on your business model.
iceboi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-20-2018, 08:30 PM   #6
freecartoonporn
Confirmed User
 
freecartoonporn's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
Quote:
Originally Posted by iceboi View Post
I use elastic search on 15 million records - 64gb ram and it performs great. The index doesn't need so much ram though. If it's too hard to set up, then go with the hosted version or you can check out algolia but it can get crazy expensive but might be worth it depending on your business model.
Thanks

how many hits does your site get ?

or whats the alexa of your site ?

do you have single box for lemp and elastic or separate boxes ?

last time i tried setting up elastic on vps , i got confused in elastic and kibana and logstash., looks like i need to do some reading now.
freecartoonporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2018, 06:08 AM   #7
freecartoonporn
Confirmed User
 
freecartoonporn's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
okat, installed elasticsearch, playing with it now.,
freecartoonporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
mysql, server, servers, sites, load, time, text, search, scale, throw, horizontally, elasticsearch, implement, difficult, slave, 10k, alexa, replication, master, cpu, gig, box, ssd, native, eben



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.