Unix Technical Forum

multiple performance

This is a discussion on multiple performance within the Oracle Database forums, part of the Database Server Software category; --> Hello! Theoretical question. For example 1) 10 sessions, each in its own thread, each connected to the same database ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 06:16 AM
Alexander Smirnov
 
Posts: n/a
Default multiple performance

Hello!

Theoretical question.

For example

1) 10 sessions, each in its own thread, each connected to the same
database and executes 10 updates on the same table, each update
affects 1 row.

2) 1 session in one thread executes 100 updates on the same table,
each update affects 1 row.

What is faster?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 06:16 AM
Robert Klemme
 
Posts: n/a
Default Re: multiple performance

On 19.04.2007 15:14, Alexander Smirnov wrote:
> Theoretical question.
>
> For example
>
> 1) 10 sessions, each in its own thread, each connected to the same
> database and executes 10 updates on the same table, each update
> affects 1 row.


The same row or different rows?

> 2) 1 session in one thread executes 100 updates on the same table,
> each update affects 1 row.
>
> What is faster?


Practical answer: my Seat Leon.

Seriously: I don't know what others will tell you but I can imagine
situations where either is faster.

Regards

robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 06:16 AM
Mark D Powell
 
Posts: n/a
Default Re: multiple performance

On Apr 19, 9:36 am, Robert Klemme <shortcut...@googlemail.com> wrote:
> On 19.04.2007 15:14, Alexander Smirnov wrote:
>
> > Theoretical question.

>
> > For example

>
> > 1) 10 sessions, each in its own thread, each connected to the same
> > database and executes 10 updates on the same table, each update
> > affects 1 row.

>
> The same row or different rows?
>
> > 2) 1 session in one thread executes 100 updates on the same table,
> > each update affects 1 row.

>
> > What is faster?

>
> Practical answer: my Seat Leon.
>
> Seriously: I don't know what others will tell you but I can imagine
> situations where either is faster.
>
> Regards
>
> robert


Define faster. Is faster based on just the clock time from the start
of the update process to the completion of the process or does it
include the total run time of all 10 sessions verse the one?

If my choice is to run one session and perform 100 updates followed by
one commit verse splitting the data into 10 units of work, starting a
session for each unit, having the session perform the work, commit,
and return a completion indication to the master process then I would
probably choose to use one session for simple updates since 100 is a
pretty small number. In this case the overhead would probably far
exceed the gain. Because there are a great many details and
performance issues to consider for each time you think you want to do
this I would rely on the Oracle PQO feature to determine if a task
should be ran parallel.

HTH -- Mark D Powell --

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 06:17 AM
Alexander Smirnov
 
Posts: n/a
Default Re: multiple performance

Based the on clock time from the start of the update to the
completeion of the process.

I want to know how much would simultaneous updates on the same table
but from the different sessions and on the different rows slow down
each other. Is it (in rough estimate) a linear function of the number
of these parallel updates?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 06:17 AM
Mladen Gogala
 
Posts: n/a
Default Re: multiple performance

On Thu, 19 Apr 2007 12:20:20 -0700, Alexander Smirnov wrote:

> Based the on clock time from the start of the update to the completeion
> of the process.


So, what stops you from trying?

--
http://www.mladen-gogala.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 06:19 AM
DA Morgan
 
Posts: n/a
Default Re: multiple performance

Alexander Smirnov wrote:
> Based the on clock time from the start of the update to the
> completeion of the process.
>
> I want to know how much would simultaneous updates on the same table
> but from the different sessions and on the different rows slow down
> each other. Is it (in rough estimate) a linear function of the number
> of these parallel updates?


There is only one right answer: depends.

As Mladen recommends ... run benchmarks. You will get no where asking
for anecdotal advice that may be irrelevant to your application on
your hardware with your usage pattern.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com