Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 17th, 2006, 01:05 PM
Kellendel Kellendel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 3 Kellendel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m
Reputation Power: 0
Firebird Performance

We currently have a firebird (1.5) database used by around 10 users and it's only 120MB, growing by about 10MB a week.

The application that accesses the database users Crystal Reports 9 to generate reports but some reports are taking a very long time to complete.

The developer first said that there is a problem CR9 but now says we have backup and restore the database on a weekly basis to correct the problem!

This seems to be absolutely riduculous as I would usually only normally restore a database in disaster recovery situation.

Taking into consideration that Firebird is a database that shouldn't need much administration, has anybody got any suggestions on why this needs to take place?

To me it seems that either the queries that generate the reports are faulty or the application/database is poorly designed.

Reply With Quote
  #2  
Old February 17th, 2006, 04:04 PM
clivew clivew is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 818 clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 51 m 6 sec
Reputation Power: 19
Quote:
Originally Posted by Kellendel
The developer first said that there is a problem CR9 but now says we have backup and restore the database on a weekly basis to correct the problem!

First question: Does it?
If it does, what is the pattern of performance degredation after the backup/restore process?

Clive

Reply With Quote
  #3  
Old February 18th, 2006, 03:53 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,925 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 20 h 9 m 23 sec
Reputation Power: 279
Start reading this very interesting article about performance tuning.

Reply With Quote
  #4  
Old February 18th, 2006, 05:02 AM
Kellendel Kellendel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 3 Kellendel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m
Reputation Power: 0
The degradation varies greatly. Usually after a restore the reports work as they should but the next day they might not.

The problem also occurred when the database was only 30MB.

I installed a program that analyses the statistics of the database and 80% of the indices are useless due to the 'key' being the same in all of them, 10% are bad with duplicated keys.


What does a backup and restore do to optimize the database (apart from index selectivity)?

The server only runs this database, 3GB of memory, Dual 3GHz processors, RAID 10 for the database file and RAID 1 for the OS.

Reply With Quote
  #5  
Old February 18th, 2006, 05:35 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,925 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 20 h 9 m 23 sec
Reputation Power: 279
Quote:
Originally Posted by Kellendel
Dual 3GHz processors
Are you running the classic server (which can take advantage of multiple processors) or the super server (multithreaded, better on single proc machines)?
Apart from analysing stats, did you update them?

Reply With Quote
  #6  
Old February 19th, 2006, 07:26 PM
Kellendel Kellendel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 3 Kellendel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m
Reputation Power: 0
I've tried classic and super, both have the same problem. The developer/suppler of the software insists on it being super server, so it's using that one at the moment.

I used IBAnalyst (from ib-aid website), to have a quick look at the database. I'm not certain how good or accurate it is but it seems useful.

My major concern is that the developer is concentrating on adding new features to the product rather than improving the performance.

Reply With Quote
  #7  
Old February 19th, 2006, 08:07 PM
clivew clivew is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 818 clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 51 m 6 sec
Reputation Power: 19
Quote:
Originally Posted by Kellendel
I installed a program that analyses the statistics of the database and 80% of the indices are useless due to the 'key' being the same in all of them, 10% are bad with duplicated keys.

Well, that certainly indicates some significant design issues; but does not really explain why a backup/restore would fix the problem on such a temporary basis. After all, the more data you add, the less likely the cardinality of the index will change significantly between backup/restore events.
Are you able to test/examine the queries being generated by CR9 using direct SQL through a Firebird tool?
Is there anything else happening on this server that could be affecting performance?
Clive

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Firebird Performance


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT