• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Database Connection Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Database Connection Question


  • Subject: Re: Database Connection Question
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 27 Aug 2010 10:49:33 -0400

On Aug 25, 2010, at 11:10 PM, Dov Rosenberg wrote:

> I am revisiting some old EOF documentation and wanted to make sure I understood a few things. Are the following statements true?
>
>
> *   When an EOModel is found and connected to a database when the app starts up each database connection is mapped to an EODatabaseChannel?

I think that EODatabaseContext is more correct than EODatabaseChannel.  The context will then use the channel.  A db context can handle multiple models (the connection information needs to be the same).


> *   A single EOObjectStoreCoordinator can manage multiple EODatabaseChannels (database connections)?

It is more meaningful to say that it manages multiple EODatabases or EODatabaseContexts.


> *   If I add another EODatabaseChannel to an EODatabaseContext does it open another database connection using the existing connection dictionary?

Yes, but it is unlikely to be used.


> *   If a single EOObjectStoreCoordinator can manage multiple EODatabaseChannels – is there any reason to try to run multiple EOObjectStoreCoordinator stacks if I am only connecting to a single database?

Each stack is single threaded (once the OSC is locked), so the concurrent use of multiple db channels is unlikely.


> *   If I have multiple EODatabaseChannels registered to a EODatabaseContext – will my app use them to allow multiple operations concurrently?

Only if there are multiple concurrent operations in the _same thread_.


> Is there a default number of EODatabaseChannels opened when the app starts up? Is there a configuration setting that I can set to add more?


One per db context and no.

Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Database Connection Question (From: Dov Rosenberg <email@hidden>)

  • Prev by Date: Re: Interacting from command line with wotaskd
  • Next by Date: Re: Debugging db exception with Openbase and raw rows date type
  • Previous by thread: Database Connection Question
  • Next by thread: Having Troubles with JUnit
  • Index(es):
    • Date
    • Thread