473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Deletes way slower on AIX, two questions

Folks

I run a process on both the windows and aix process. The process
consists of many steps most are about the same on both platforms.
However there is one delete statement that is taking forever on aix,
four hours versus 10 minutes. It is like this,

DELETE FROM TPS_REPORTS WHERE
COVER_SHEET not in (SELECT COVER_SHEET FROM TPS_TEMP)

So there really isn't much room for rewriting the query. In fact on
both platforms I get the same plan with very similar weights. Even
when I rewrite it

DELETE FROM TPS_REPORTS as Ini
WHERE EXISTS
(SELECT *
FROM TPS_TEMP AS tech
WHERE Ini.COVER_SHEET = tech.COVER_SHEET );

The plan correctly, I believe, does a full scan as there two million
rows and I expect 99.9 percent to be deleted.

Is there some tuning I should be looking at and what values should
they be given
two millon rows in a table with 5 small var chars and 10 numeric
values?

Would

ALTER TABLE TPS_REPORTS ACTIVATE NOT LOGGED INITIALLY;

help even though this doesn't seem to be needed on windows?
Nov 12 '05 #1
2 1221
Bo*******@excite.com (Bob Sparks) wrote in message news:<9b**************************@posting.google. com>...
Folks

I run a process on both the windows and aix process. The process
consists of many steps most are about the same on both platforms.
However there is one delete statement that is taking forever on aix,
four hours versus 10 minutes. It is like this,

DELETE FROM TPS_REPORTS WHERE
COVER_SHEET not in (SELECT COVER_SHEET FROM TPS_TEMP)

So there really isn't much room for rewriting the query. In fact on
both platforms I get the same plan with very similar weights. Even
when I rewrite it

DELETE FROM TPS_REPORTS as Ini
WHERE EXISTS
(SELECT *
FROM TPS_TEMP AS tech
WHERE Ini.COVER_SHEET = tech.COVER_SHEET );

The plan correctly, I believe, does a full scan as there two million
rows and I expect 99.9 percent to be deleted.

Is there some tuning I should be looking at and what values should
they be given
two millon rows in a table with 5 small var chars and 10 numeric
values?

Would

ALTER TABLE TPS_REPORTS ACTIVATE NOT LOGGED INITIALLY;

help even though this doesn't seem to be needed on windows?


Check your system temporary tablespace. Consider making it SMS on a
volume with lots of freespace. If you want DMS, make sure it is at
least the size of the largest table, and perferably several times as
large.
Nov 12 '05 #2
Bo*******@excite.com (Bob Sparks) wrote in message news:<9b**************************@posting.google. com>...
Folks

I run a process on both the windows and aix process. The process
consists of many steps most are about the same on both platforms.
However there is one delete statement that is taking forever on aix,
four hours versus 10 minutes. It is like this,

DELETE FROM TPS_REPORTS WHERE
COVER_SHEET not in (SELECT COVER_SHEET FROM TPS_TEMP)

So there really isn't much room for rewriting the query. In fact on
both platforms I get the same plan with very similar weights. Even
when I rewrite it

DELETE FROM TPS_REPORTS as Ini
WHERE EXISTS
(SELECT *
FROM TPS_TEMP AS tech
WHERE Ini.COVER_SHEET = tech.COVER_SHEET );

The plan correctly, I believe, does a full scan as there two million
rows and I expect 99.9 percent to be deleted.

Is there some tuning I should be looking at and what values should
they be given
two millon rows in a table with 5 small var chars and 10 numeric
values?

Would

ALTER TABLE TPS_REPORTS ACTIVATE NOT LOGGED INITIALLY;

help even though this doesn't seem to be needed on windows?


Check your system temporary tablespace. Consider making it SMS on a
volume with lots of freespace. If you want DMS, make sure it is at
least the size of the largest table, and perferably several times as
large.
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
12
by: Gustavo L. Fabro | last post by:
Greetings! Getting straight to the point, here are the results of my experiment. I've included my comments and questions after them. The timing: (The total time means the sum of each line's...
14
by: Roy Gourgi | last post by:
Hi, How much is C# slower than C++? TIA Roy
12
by: Gustavo L. Fabro | last post by:
Greetings! Getting straight to the point, here are the results of my experiment. I've included my comments and questions after them. The timing: (The total time means the sum of each line's...
28
by: Jim Hubbard | last post by:
I've noticed (for quite some time now) that .Net UIs are not as responsive (see Franklin Covey's PlanPlus for Windows XP or Symantec's .Net Norton Antivirus or even the .Net version of Paint done...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.