Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Timeout error when searching for album
Noel Thomas
#1 Posted : Tuesday, 14 June 2011 5:55:46 AM(UTC)
Rank: Member

Joined: 14/10/2010(UTC)
Posts: 16
Location: Bracknell, UK

I am constantly (but not always) getting a timeout error when i click on the search button in the gallery. The error reads as follows:


Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding


Is there a way of extending the timeout or is there another solution to this problem? We do have 100000+ pictures so wondering if this has anything to do with it.

thanks

Noel
Roger Martin
#2 Posted : Tuesday, 14 June 2011 6:48:03 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I think you are getting a database timeout rather than an ASP.NET timeout, right? Off the top of my head I don't remember how to extend the SQL timeout - it might be a parameter you set in the connection string in web.config. But I'm not sure I recommend that, since that just means you have to wait longer for your search results.

First make sure you are on the latest version. I improved the search performance in 2.4.6.

Second, make sure you are using SQL Server. That is faster than SQLite (or SQL CE, if you are reading this after 2.5 is released).

Third, you can edit the stored procedure gs_SearchGallery to improve performance by not searching the table gs_MediaObjectMetadata. This table contains all the metadata extracted for media files and is typically several times larger than the album or media object tables, which takes a significant amount of time to search. That means, of course, that you won't be able to search on the metadata, but that might be acceptable in your case.

Alternatively, you can write a SQL script to delete records from the metadata table you don't care about. For example, if you don't need to search on f-stop, you can run this SQL:

DELETE FROM gs_MediaObjectMetadata
WHERE MetadataNameIdentifier=17

Or you can just not extract metadata in the first place by disabling that option on the metadata page in the site settings.

Hope this helps,
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.