Toronto.2600, the Official Website of the Toronto chapter of 2600.
 
To2600 Web Board
Powered by AvBoard version 1.5 alpha
Not logged in
HomeSearchLoginRegister
To2600 Web Board > Private Boards Index > UER Database Talk > Search (Viewed 2245 times)
Avatar-X 

Alpha Husky


Location: West Coast
Gender: Male
Total Likes: 765 likes


yay!

 |  |  | AvBrand
Search
< on 12/9/2010 9:58 PM >
Reply with Quote
Posted on Forum: UER Forum
Alright, wanna help me tackle the next problem?

The search is slow. That's fine, I don't really mind it being slow. I'm using FullText indexes to help speed it up.

But, what is a problem is that while any ONE user is performing a search, it locks other tables (such as the users table), bringing the site to its knees for everyone.

Most of these tables are MyISAM. How do you feel about me switching them to InnoDB? What are the realistic pros and cons of InnoDB vs. MyISAM? I know that Inno is slower to do full table counts/etc, but is it better for tables that are accessed and updated constantly?

-av




huskies - such fluff.
EatsTooMuchJam 


Location: Minneapolis, MN
Gender: Male
Total Likes: 24 likes


Squirty "Stickybuns" von Cherrypants

 |  |  | Add to ICQ | Yahoo! IM | AIM Message | Photography Site
Re: Search
< Reply # 1 on 12/10/2010 3:22 PM >
Reply with Quote
Posted on Forum: UER Forum
Posted by Avatar-X
Most of these tables are MyISAM. How do you feel about me switching them to InnoDB? What are the realistic pros and cons of InnoDB vs. MyISAM? I know that Inno is slower to do full table counts/etc, but is it better for tables that are accessed and updated constantly?


It's sort of a wash for full text searching on tables which are being constantly updated. InnoDB doesn't have full text indexing, but it also doesn't do a giant table level lock for things like MyISAM does.
http://www.kavoir....pros-and-cons.html

-D




"The large print giveth and the small print taketh away."
-Tom Waits
Avatar-X 

Alpha Husky


Location: West Coast
Gender: Male
Total Likes: 765 likes


yay!

 |  |  | AvBrand
Re: Search
< Reply # 2 on 12/10/2010 4:34 PM >
Reply with Quote
Posted on Forum: UER Forum
Right, I get that. What I am wondering is, can I switch the USERS table to InnoDB? I don't need full-text searching on that table.

-av




huskies - such fluff.
EatsTooMuchJam 


Location: Minneapolis, MN
Gender: Male
Total Likes: 24 likes


Squirty "Stickybuns" von Cherrypants

 |  |  | Add to ICQ | Yahoo! IM | AIM Message | Photography Site
Re: Search
< Reply # 3 on 12/10/2010 5:13 PM >
Reply with Quote
Posted on Forum: UER Forum
Posted by Avatar-X
Right, I get that. What I am wondering is, can I switch the USERS table to InnoDB? I don't need full-text searching on that table.

-av


Then yeah, probably, and it should be better if it's being constantly updated and read.




"The large print giveth and the small print taketh away."
-Tom Waits
Emperor Wang 


Location: On an island, in a river
Total Likes: 1030 likes


Fetish? What fetish?

 |  | 
Re: Search
< Reply # 4 on 12/11/2010 2:09 AM >
Reply with Quote
Posted on Forum: UER Forum
I have no suggestions regarding performance, but functionality could sure be improved when it comes to short search strings.

As things are, when a user searches for a short text string (I don't know the lower length limit, but here's a sample search for "sex") the results page comes up empty. This is misleading. If you're not indexing short terms you should come right out and admit it on the results page. Better yet, do it on the search page too.

Also, it couldn't hurt to echo the search terms on the results page.




It's great to be alive!
Tom 


Location: Pittsburgh
Gender: Male
Total Likes: 6 likes




 |  |  | Hobogan
Re: Search
< Reply # 5 on 9/28/2014 4:20 AM >
Reply with Quote
Posted on Forum: UER Corporate Edition
More thread necromancy, but could you switch to dirty read? You might miss a very recent post if the write happened while you were searching, but it'll show up on the next search. More importantly, you won't lock the table.




To2600 Web Board > Private Boards Index > UER Database Talk > Search (Viewed 2245 times)


Add a poll to this thread



This thread is in a public category, and can't be made private.
  copyright © 2004 toronto 2600. all rights reserved