• 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: Batching creation of primary keys with Oracle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Batching creation of primary keys with Oracle


  • Subject: Re: Batching creation of primary keys with Oracle
  • From: Guido Neitzer <email@hidden>
  • Date: Fri, 25 Apr 2008 11:12:48 -0600

On 24.04.2008, at 20:27, Ken Anderson wrote:

Does anyone have a cookbook on how to fetch more than one primary key at a time from Oracle sequences? I know there are some DB plug- ins that do this for you automatically, but it doesn't seem like the Oracle plug-in does. Ideally, I would like to be able to set the size of the batches by entity, but I'd settle for a way to at least get more than one at a time... my insert performance is very poor.

Maybe take a look at either:

- the PostgresqlPlugin which does this
- ERXLongPrimaryKeyFactory (you might get ideas from there)
- EOF generated primary keys (24 Byte binary)

But maybe your insert performance is poor for other reasons that getting primary keys, which normally isn't too slow even with one round-trip per row. Have you checked other options? Like do you have expensive indexes on the tables?

And how do you define "poor"?

cug

--
http://www.event-s.net

_______________________________________________
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


  • Follow-Ups:
    • Re: Batching creation of primary keys with Oracle
      • From: Ken Anderson <email@hidden>
References: 
 >Batching creation of primary keys with Oracle (From: Ken Anderson <email@hidden>)

  • Prev by Date: Re: WOGenericContainer convert elementName to lowercase automatically
  • Next by Date: Re: What's the crack with 5.4.2?
  • Previous by thread: Re: Batching creation of primary keys with Oracle
  • Next by thread: Re: Batching creation of primary keys with Oracle
  • Index(es):
    • Date
    • Thread