sharing data accross several databases
sharing data accross several databases
От:
"bob lapique"<lapique@chez.com>
Дата:
Hi, I am designing 2 databases : - the 1st relates to flasks - the 2nd relates to cylinders Both flasks and cylinders will be shipped accross the world and I need to keep track of check out dates, shipping method, destination, etc. These data will be of the same type for both databases. Questions : ----------- 1) Is a 3rd database the solution ? 2) I would like to keep on using foreign keys (e.g. between a shipped item and the destination location) Thanks for help. ------------------- Vous aussi devenez le "Coup de coeur de Julie" et gagnez une Webcam sur http://www.chez.com ! Chez.com vous invite � d�couvrir l'univers passionnant des sites persos.
Re: sharing data accross several databases
От:
"Josh Berkus" <josh@agliodbs.com>
Дата:
Bob, > I am designing 2 databases :> - the 1st relates to flasks> - the 2nd relates to cylinders> > Both flasks and cylinders will be shipped accross the > world and I need to keep track of check out dates, > shipping method, destination, etc. These data will be of > the same type for both databases. So, why are you designing two seperate databases? It seems to me that you only need one database, with relevant tables carrying a "Type" column of "Flask" or "Cylinder". Seperate databases will give you all kinds of headaches you don't need. > Questions :> -----------> 1) Is a 3rd database the solution ? No. One, single, database is the solution. > 2) I would like to keep on using foreign keys (e.g. > between a shipped item and the destination location) PostgreSQL does not permit access of multiple databases from SQL (this was a design decision, based on the project's interpretation of the SQL92 standard). If you pursue you current approach, you will be forced to use middleware (such as JSP or J2EE or Perl::DBI) to access both of your databases at once ... considerable trouble for no benefit. -Josh Berkus ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco
Re: sharing data accross several databases
От:
chester c young <chestercyoung@yahoo.com>
Дата:
Absolutely agree! > So, why are you designing two seperate databases? ... > Seperate databases will give you all kinds of headaches you don't need. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/