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

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 March 12th, 2012, 10:39 AM
srayner srayner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 23 srayner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 20 m 37 sec
Reputation Power: 0
How high can the next transaction id go?

How high can the next transaction id go?

My database increases the next trasaction id by about 1million each working day. The database crashes after about three weeks and we have to backup/restore to recover it.

(see previous thread)

I'm just interested in how high the next transaction id can go before it reaches its limit. Then what happens, does it restart at zero?

Reply With Quote
  #2  
Old March 12th, 2012, 02:53 PM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 309 mariuz User rank is Sergeant (500 - 2000 Reputation Level)mariuz User rank is Sergeant (500 - 2000 Reputation Level)mariuz User rank is Sergeant (500 - 2000 Reputation Level)mariuz User rank is Sergeant (500 - 2000 Reputation Level)mariuz User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 9 h 38 m 4 sec
Reputation Power: 22
Lightbulb In firebird <3.0 is 2^31-1 , 3.0 2^64-1

Quote:
Originally Posted by srayner
How high can the next transaction id go?

My database increases the next trasaction id by about 1million each working day. The database crashes after about three weeks and we have to backup/restore to recover it.

(see previous thread)

I'm just interested in how high the next transaction id can go before it reaches its limit. Then what happens, does it restart at zero?

In firebird <3.0 is max is 2^31-1 ,
in 3.0 max is 2^64-1 = 4294967295
See this thread for a discussion
http://firebird.1100200.n4.nabble.c...-td4230210.html

Quote:
Trunk is the ongoing development branch (formerly known as HEAD in CVS),
i.e. transaction IDs are already unsigned long in FB 3.0.
__________________
My home page: http://www.firebirdsql.org and work place :http://www.reea.net

Last edited by mariuz : March 12th, 2012 at 03:06 PM.

Reply With Quote
  #3  
Old March 13th, 2012, 01:26 AM
tsteinmaurer tsteinmaurer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Posts: 34 tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level)tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level)tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 2 m 19 sec
Reputation Power: 3
@srayner: With your load, this means 21 mio transactions in three weeks, which doesn't overflow the mentioned transaction id limit. According to your previous thread, you simply have a problem in your client transaction management code. Possibly:

* Some kind of auto commit mode using CommitRetaining behind the scene etc. without doing a hard commit from time to time
* Using Read_Write transactions when you also can use Read_Only transactions

etc.

Deeper analysis is sometimes hard in public forums, so if you are interesting in getting support/services on a commercial base, let me know.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > How high can the next transaction id go?

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap