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 July 14th, 2004, 09:41 AM
moonlight moonlight is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17 moonlight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to moonlight
Problems with data in cache

Hello everyone,
I have a database server running Firebird 1.5 SS under SUSE Linux 8.0, and a software that access this server from many client machines. This would be a multiuser software, so, each user has its own database user created. But I've been having a problem with data refreshing, and I believe it's because this data is in cache. What happens is:

If a user is logged in the software from a machine, and alters data in a table... a second user, who was already logged in the software before the data chance, will not see this alterations. When he fetchs the data, he'll receive the old data, and not the altered data. He'll only be able to see the altered data after he logs out and logs in again. In other words: after another connection is made.

I figured this would be a cache problem, so I did a little research on the web and even changed a parameter in the firebird.conf file... the number of cached pages was 2048 and I changed it to 50, but it didn't solve my problem.

I'd like to know if any of you have already seen this problem... is there any way I can disable the data caching? Is there any way I can make it fetch data always from the database and never from the cache, even if it will slow down my application?

Thanks for your attention...

Reply With Quote
  #2  
Old July 14th, 2004, 09:58 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,917 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 14 h 31 m 53 sec
Reputation Power: 279
Are you shure that a commit from the first user is issued?

Reply With Quote
  #3  
Old July 14th, 2004, 10:06 AM
moonlight moonlight is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17 moonlight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to moonlight
I've just checked. Yes, there is a commit.

Reply With Quote
  #4  
Old July 15th, 2004, 06:07 AM
moonlight moonlight is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17 moonlight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to moonlight
Anyone?

Reply With Quote
  #5  
Old August 20th, 2004, 09:49 PM
mikca mikca is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 mikca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Other clients need to refresh

Other clients need to refresh - that's it.
Desktop databases generally handle this for you in the background (Paradox does and Access after a fashion) but with SQL your app needs to either monitor for changes (use firebird events not a good idea if you have many clients) or perform refreshes at some determined interval or event.

Put your cache back up to it's original size as soon as possible. Remember that the cache is ONLY for the FB server - effectively anything in cache is in the database.

Mick

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Problems with data in cache


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