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 September 12th, 2005, 06:34 AM
egidy egidy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 166 egidy User rank is Private First Class (20 - 50 Reputation Level)egidy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 15 h 49 m 31 sec
Reputation Power: 5
many selects on one table - performance issue

I have one table (for parameters of all system) which is very rarely updated (if at all) but select's are issued very frequently and from different places (exe, triggers, SP etc.) - can this lead to bad performance and should I try to avoid this kind of solution?

I have heard about locks - maybe they are working in this case?

Thanks for your thoughts in advance.

Reply With Quote
  #2  
Old September 12th, 2005, 11:47 AM
snf173 snf173 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 5 snf173 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 58 m 46 sec
Reputation Power: 0
Quote:
Originally Posted by egidy
I have one table (for parameters of all system) which is very rarely updated (if at all) but select's are issued very frequently and from different places (exe, triggers, SP etc.) - can this lead to bad performance and should I try to avoid this kind of solution?

I have heard about locks - maybe they are working in this case?

Thanks for your thoughts in advance.


Hi,

In Firebird, readers don't block writers and vice versa. Multiple read opearations on the same table will not result in table locking in Firebird. See the factsheet for this (http://firebird.sourceforge.net/guide/FBFactsheet.html).

Regards,
Luciën Ceder

Reply With Quote
  #3  
Old September 13th, 2005, 02:28 AM
SilverDB's Avatar
SilverDB SilverDB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Romania
Posts: 173 SilverDB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 45 m 53 sec
Reputation Power: 5
Send a message via Yahoo to SilverDB
Also to improve select performance use indexes on ordering fields and so on ...
__________________
If i've been helpful, please add to my reputation.
My unfinished site: http://www.dever.ro

Reply With Quote
  #4  
Old September 13th, 2005, 03:24 AM
fikret fikret is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Sarajevo, Bosnia
Posts: 111 fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 32 m 19 sec
Reputation Power: 8
Quote:
Originally Posted by egidy
I have one table (for parameters of all system) which is very rarely updated (if at all) but select's are issued very frequently and from different places (exe, triggers, SP etc.) - can this lead to bad performance and should I try to avoid this kind of solution?


NO, it won't lead to bad performance. But your indexes can.

Quote:
Originally Posted by egidy
I have heard about locks - maybe they are working in this case?


Firebird's MGA (Multigeneration architecture) doesn't use locks at all. But, you can explicitly use locks.

Quote:
Originally Posted by egidy
Thanks for your thoughts in advance.


No problem ;-)

--
Best regards,
Fikret Hasovic http://fikret.fbtalk.net

* Firebird Foundation member.
- Join today at http://www.firebirdsql.org/ff/foundation
* JEDI VCS contributor
http://jedivcs.sourceforge.net/
* Firebird and Fyracle news
http://www.fyracle.org

Reply With Quote
  #5  
Old September 13th, 2005, 01:09 PM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 274 mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 12 m 34 sec
Reputation Power: 9
if you want to know more about Multi Version Concurrency Control , Roman Rokytskyy wrote
an paper about it

http://www.firebirdsql.org/doc/whit...m_vs_oracle.htm
__________________
My home page: http://www.firebirdsql.org and work place :http://www.reea.net

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > many selects on one table - performance issue


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 3 hosted by Hostway
Stay green...Green IT