Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (SteveS, Jake), 47 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 709
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 13
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 4 of 4 < 1 2 3 4
Topic Options
#228284 - 08/11/09 03:42 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: Rick]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Devils Advocate Rick.
What good is it to keep the posts if you limit the date range to search by.
If they can't find them then you might as well delete them.
Just my 2 cents.
Or maybe you are working on this in v8. Hey I could have had a v8. LOL sounds like a commercial.
_________________________
Blue Man Group
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#228285 - 08/11/09 04:14 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: Ruben]
PianoWorld Offline
journeyman
Registered: 10/19/08
Posts: 52
Loc: Largo, Florida
Much of the popularity (read: traffic) of our site is tied to the Piano Forums.
As are thousands of pages indexed in the search engines.

I'd hate to have to decide which posts to delete (not to mention, it would take an enormous chunk of my time to slog through all the posts).

I guess my lack of technical knowledge leaves me confused about why a search query would lock up the rest of the forums.

Isn't one search = to one connection?
Shouldn't it be able to more or less run in the background without bringing down the rest of the forums?

Lots of people come to Piano World to research information about pianos. It's natural for them to gravitate to the search function.
_________________________
Founder/Host
Piano World
www.PianoWorld.com
Home of the world famous Piano Forums.
www.PianoWorld.com/forum
52,000+ registered members
Over 1.4 million posts, and growing...
Top
#228286 - 08/11/09 04:20 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: PianoWorld]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Well you don't have to delete them, Ricks suggestion is just limit the search to say 1 year or so.
My question is if you limit searches to 1 year then what good is the posts older than 1 year or so. You would have to click forever to find them. So might as well delete them or possibly move them to a archive forum. But you would still have the dilemma of finding them.
_________________________
Blue Man Group
Top
#228287 - 08/11/09 04:25 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: Ruben]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
I hate scrolling to the right.
_________________________
Blue Man Group
Top
#228288 - 08/11/09 04:51 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: Ruben]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Originally Posted By: Ruben
Devils Advocate Rick.
What good is it to keep the posts if you limit the date range to search by.


When it gets so large the fulltext is slowing things down the only thing you can do is really search in chunks. That's what the newer than / older than selections are for on the search page. Having a 1 year date range doesn't limit you to only last year's posts. You can search any daterange, ie 2004-2005. It's not the optimal solution, but as the size of the db grows, fulltext will slow down.
Top
#228289 - 08/11/09 04:55 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: PianoWorld]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Originally Posted By: PianoWorld

Isn't one search = to one connection?
Shouldn't it be able to more or less run in the background without bringing down the rest of the forums?


In simple terms it has to lock the table in order to do the query. When the table is locked then other queries on that table will stack up until it's done.

There are a few solutions that some sites will do such as having a slave database that is strictly just for searches. So when a search is done it's done on the slave and won't block other queries.

There are a few things we're going to try and do to help with search speed, but it's always a sticking point especially when it's done on all posts in the database.
Top
#228290 - 08/11/09 05:00 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: Rick]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Oh okay. I thought the date range setting limited the newer than/ less than search fields in the advanced search.
You do get a message above the fields showing the "Maximum date range is xxx"
_________________________
Blue Man Group
Top
#228291 - 08/11/09 05:14 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: Rick]
PianoWorld Offline
journeyman
Registered: 10/19/08
Posts: 52
Loc: Largo, Florida
Originally Posted By: Rick
Originally Posted By: PianoWorld

Isn't one search = to one connection?
Shouldn't it be able to more or less run in the background without bringing down the rest of the forums?


In simple terms it has to lock the table in order to do the query. When the table is locked then other queries on that table will stack up until it's done.

There are a few solutions that some sites will do such as having a slave database that is strictly just for searches. So when a search is done it's done on the slave and won't block other queries.

There are a few things we're going to try and do to help with search speed, but it's always a sticking point especially when it's done on all posts in the database.


Ok, got it, thanks.

Then in theory, would it be possible to rework the search interface to restrict searches to specific blocks?

I'm thinking of a series of Radio buttons:
* Past Month
* Past 6 Months
* 1 Year Ago (a 6 month search of Aug 2008 - Feb. 2009)
* 2 Years Ago (where it will search Aug. 2007 to Aug. 2008)
* 3 Years Ago (where it will only search Aug. 2006 - Aug. 2007)

I know, probably making it more complicated than it needs to be. It's just that there are still posts with some value going back years. I'd hate to cut people off from those.

By the same token, it's annoying a lot of our members/visitors when the forums lock up, and I'm sure it's scaring away some new potential members.

We already have some pretty decent hardware cranking, I keep hoping there is a coding/development solution lurking in here somewhere.
_________________________
Founder/Host
Piano World
www.PianoWorld.com
Home of the world famous Piano Forums.
www.PianoWorld.com/forum
52,000+ registered members
Over 1.4 million posts, and growing...
Top
#228296 - 08/11/09 06:05 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: Ruben]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Originally Posted By: Ruben
What good is it to keep the posts if you limit the date range to search by.
Search Engines, scrolling through dates manually
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#228312 - 08/12/09 04:11 PM Re: 7.5 Experts? - Getting Database Error Messages [Re: Gizmo]
mathx Offline
stranger
Registered: 07/29/09
Posts: 5
im sure the ordering of the joins has some effect too, ill have to readup again on my rusty mysql query optimizations (im mostly a postgres guy smile -- there is an index key on the posting date, so if that is restricted first before the rest of the joins occur in the query, then that should speed things up.

Of course Pianoworld's suggestions above of a sliding time range window for the searches is a good idea, but whatever is the biggest search in terms of # of posts included in the search range will be the slowest - so those 1 year ranges will be quite large.

there are 132k posts since jan 1 2009, and 336k posts jan 2008-2009. so we're looking at > 300k/year. so a 1 year search limit would be about 4 times fewer posts. if impact on the query is O(n^2) or larger, that'd speed things up, but i dont know how the query engine will react to that - depends on mysql internals for innodb that i am not familiar with - i spose we can only try.
Top
Page 4 of 4 < 1 2 3 4



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image