Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-13-2003
caricand caricand is offline
Registered User
 
 
Join Date: May 2003
Location: FRANCE
Posts: 1
Question Replace Freeze by PostgreSQL

Hello,

I have started to study ICE for a few days in order to use it
in new developments. I am happy to note that the source codes are
clear and comprehensible !
I will have nevertheless a small question:
Is it possible to use ICE with a relational data base like PostgreSQL
in the place of Freeze? Currently, my company uses MICO like ORB and
PostgreSQL as bases data.

Jean-Michel
Reply With Quote
  #2 (permalink)  
Old 07-13-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,780
You cannot replace Berkeley DB in Freeze, but you can write a new persistence service that uses PostgreSQL, using Freeze as an example.

Freeze is tightly coupled with Berkeley DB (and the next version will even be more tightly coupled), in order to achieve optimal performance. If we would use a database abstraction interface, we couldn't make use of many of Berkeley DB's features, and thus Freeze would be much slower.
Reply With Quote
  #3 (permalink)  
Old 07-14-2003
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 769
Of course it is possible to use Ice with any database -- simply use in your servants both Ice and your database APIs. I want to be sure nobody reads this thread and gets a different impression!

Ice also offers a persistence mechanism, Freeze, with 3 layers (from lower to higher):
* The Freeze Database API, a thin layer on top of Berkeley DB. It would not make sense to port or attempt to port this layer on top of any other database.
* The Freeze Map, a persistent associative Map. It would be possible to port this layer to another database; however the locking behavior may be slightly different depending on the underlying system.
* The Freeze Evictor, which provides automatic persistence for Ice objects. Since it's quite high level, it would be the easiest to port to another database without affecting code using this service.

Currently these 3 layers are very tightly coupled, so porting for example the Freeze Evictor to PostgresSQL would not be possible without significant API changes. I am working on improving this for the next Ice release.

Cheers,
Bernard
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to replace file-in-use kan Help Center 3 12-16-2005 03:47 AM
Can I integrate other database such as PostgreSQL with Freeze Mjollnir Help Center 1 04-11-2005 10:03 AM


All times are GMT -4. The time now is 07:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.