Subject | Re: [firebird-support] Bad design causing problems |
---|---|
Author | Woody |
Post date | 2006-05-24T16:59:55Z |
From: "Rik Barker" <rik.barker@...>
This might be one of those times. :)
a process we all go through and a mighty good learning experience.
Woody (TMW)
>I
> Yep, critical sections are something I'm considering, but I'd hoped to
> avoid because of the bottleneck it will create on inserts. The example
> I've shown is one of 4 inserts done (all with preceding selects). 10
> threads all inserting at once is really pretty nippy. I'd hoped I could
> use the database to handle the de-duping so the app could run faster, but
> think my threads are so isolated (as they should be) that I'm sufferingthe
> consequences.In some cases, in order to ensure data accuracy, you have to give a little.
This might be one of those times. :)
> When I first wrote it as a stored procedure I thought it was quite aclever
> approach. I was evaluating 3 different database engines, and learning SQLpossible
> at the same time. I wanted my code to require as little change as
> so it seemed sensible to put the database specifics in the database. FromCan't tell you how many times my "clever" code had to be rewritten. :) It's
> the disapproving looks and light chastisement I've been getting, I think I
> have some more reading to do. *8)
a process we all go through and a mighty good learning experience.
Woody (TMW)