Unix Technical Forum

design for query performances on large tables

This is a discussion on design for query performances on large tables within the Oracle Database forums, part of the Database Server Software category; --> Hi all, SCENARIO: - oracle 9i RAC installation on linux RedHat, with partitioning enabled the system has to correlate ...


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-24-2008, 10:56 AM
dexterward@despammed.com
 
Posts: n/a
Default design for query performances on large tables

Hi all,

SCENARIO:
- oracle 9i RAC installation on linux RedHat, with partitioning enabled


the system has to correlate records coming from table in sqlserver and
from other 2 in oracle db.
the tables records are generated at a very fast rate, around 1M
records/day
they are coming from text files, imported to the DB
to handle complexity, range partitioning is used in oracle, but is
unavailable in sqlserver.

the records are going to be correlated via primary key, which is the
same in a 1-1 relationship
a set of queryies with group function are going to be runned nightly on
the correlated data

the solution we are projecting are the following:

1) import the SQLserver records in Oracle, too , and correlate using a
view and optimize it.
that woud be the best, but info duplication and tuning activities are
required

2) write a service that create a table with the correlated info in
sqlserver, so joins are not required
and performances would be less demanding

which would be the best approach in tour opinion?
any help would be appreciated
vl

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 10:58 AM
DA Morgan
 
Posts: n/a
Default Re: design for query performances on large tables

dexterward@despammed.com wrote:

> Hi all,
>
> SCENARIO:
> - oracle 9i RAC installation on linux RedHat, with partitioning enabled
>
>
> the system has to correlate records coming from table in sqlserver and
> from other 2 in oracle db.
> the tables records are generated at a very fast rate, around 1M
> records/day
> they are coming from text files, imported to the DB
> to handle complexity, range partitioning is used in oracle, but is
> unavailable in sqlserver.
>
> the records are going to be correlated via primary key, which is the
> same in a 1-1 relationship
> a set of queryies with group function are going to be runned nightly on
> the correlated data
>
> the solution we are projecting are the following:
>
> 1) import the SQLserver records in Oracle, too , and correlate using a
> view and optimize it.
> that woud be the best, but info duplication and tuning activities are
> required
>
> 2) write a service that create a table with the correlated info in
> sqlserver, so joins are not required
> and performances would be less demanding
>
> which would be the best approach in tour opinion?
> any help would be appreciated
> vl


Bringing the SQL Server records into Oracle is definitely the best
possible idea. Some of what you will next want to do involves
functionality not available in SQL Server.

I'd forget the view ... at least based on what you wrote ... as it
seems to provide no real value: Maybe in SQL Server but in Oracle
I don't see the point.

Forget the SQL Server nonsense, sorry but it really is nonsense,
creating another table. Create the appropriate constraints and
indexes and just query it.

As long as this is RAC, though, I would strongly urge you to look at
turning those inevitable SQL Server surrogate key identities into
a REVERSE KEY index in Oracle to minimize block contention across the
interconnect.

For more information on REVERSE KEY indexes go to
http://tahiti.oracle.com and http://www.psoug.org where you should
click on Morgan's Library and then on Indexes.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
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 05:24 PM.


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