473,623 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: Use of Parallel Query Servers

If you are firing that many queries you better be using bind variables and
parsing the query once and rebinding, and executing many times and NOT
closing the cursor. Doing that will help you immensely lower CPU usage.
You are sending the queries sychronsly and the type of queries you are
sending are not suited for doing parallel queries on (" single row from the
a table and uses the primary key in its WHERE predicate"). Parallel queries
are more suited for full table scan or large sorts. Using parallel query in
your case will make each query take longer.

The reason you see a cpu get busy is because you are sending the queries one
after another and not at the same time. I think you would dramatically
speed things up by using bind variables etc. as I have stated before.(odds
are over 90% that you are not using bind variables given your high CPU
usage)
Jim

"Shekar Kamath" <sh***********@ mphasis.comwrot e in message
news:77******** *************** ***@posting.goo gle.com...
Hi,

We are attempting to switch on the parallel query servers option in
Oracle,So far we have not succeeded in doing.Was just wondering
whether its helpful in our case. Following is the configuration of
the machine on which the Oracle server is installed.

Dual CPU Intel Xeon P4 1.8 GHz,
1 GB RAM, SCSI HDD.

Our application is firing multiple queries one after the other in
sequence, each of the individual queries is not complicated and is
required to retrieve a single row from the a table and uses the
primary key in its WHERE predicate. Total number of such queries being
fired is close to 46000 in a sigle sequential operation.

What we notice is that the server is only making use of a single CPU,
the other CPU is essentially idle. The CPU getting used reaches close
to 90% utilisation and the other CPU remians idle during this entire
duration.

We tried switching on the parallel query option by setting the
parallel_automa tic_tuning parameter in init.ora to true. However even
this is not helping. The server is still utilizing only a single CPU.
The outputs from v$pq_slave, v$pq_tqstat returns zero rows.

Any clues on what we may be doing wrong?

-Shekar

Jun 27 '08 #1
0 1439

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

Similar topics

0
1883
by: Yuancai \(Charlie\) Ye | last post by:
Hi, All: I am happy to annouce that we have formally released our latest SocketPro version 4 at www.udaparts.com, an advanced remoting framework written from batching/queue, asynchrony and parallel computation. Key Benefits of SocketPro: Super performance and scalability It is a guarantee that SocketPro based client-server applications
2
13658
by: Neil Ginsberg | last post by:
I have a SQL 7 db with a union query (view), and I'm getting the error, "The query processor could not start the necessary thread resources for parallel query execution." This union query has been in place for about two years now with no problems until just now, though I haven't changed anything. Also, I have a local copy of the database on my machine, and the query runs fine. As noted, I haven't changed anything in the query, nor in the...
6
2649
by: Alexandre MELARD | last post by:
HI, I have a tricky problem about parallel processing using JavaScript. a script makes use of classes. 2 objects A and B are created at intialisation. The two objects make use of the same function foo(). at runtime, the action: A.foo(); B.foo(); is executed.
11
3314
by: karan | last post by:
I would like to know how one can use the parallel port through c/c++.Also, how does one determine what port is installed(EPP/ECP/SSP/PS2)? What is the differnece between these? What are the current sinking/drawing capacities of these ports? If possible, please give examples in C/C++. Thanks I would be grateful if any ebooks/tutorials could be provided at karanmalhotra85@yahoo.com
12
3961
by: Peter Eisentraut | last post by:
Is there any practical limit on the number of parallel connections that a PostgreSQL server can service? We're in the process of setting up a system that will require up to 10000 connections open in parallel. The query load is not the problem, but we're wondering about the number of connections. Does anyone have experience with these kinds of numbers? ---------------------------(end of broadcast)--------------------------- TIP 1:...
4
3540
by: Mark D Powell | last post by:
SQL Server 2000 SP3A Last week one of our processes starting issuing or suffering deadlock detected errors every 15 minutes or so. I have read several articles at MS on the subject. I set a couple of startup parameters related to producing deadlock detection information and ran SQL Profiler. I found the SQL statements being issued by the deadlocked statements. In every deadlock the same UPDATE statement appears however the data...
4
4215
by: sesling | last post by:
I currently use an SQL command line that utilizes parallel threads. ex. select /*+ PARALLEL (ACCOUNT 20) */ Account_ID, Customer_Name, Add_Date from Customer_Info. By running this query using parallel threads, it returns results in less than one minute. If I did not use the parallel threads, it would take 20 minutes or more to run. This command is run using SQL+ Is it possible to use Parallel thread processing in Access? If so, how?
43
4302
by: parallelpython | last post by:
Has anybody tried to run parallel python applications? It appears that if your application is computation-bound using 'thread' or 'threading' modules will not get you any speedup. That is because python interpreter uses GIL(Global Interpreter Lock) for internal bookkeeping. The later allows only one python byte-code instruction to be executed at a time even if you have a multiprocessor computer. To overcome this limitation, I've created...
0
207
by: Daniel Roy | last post by:
In addition to setting this parameter to TRUE, you'll need to either specify the PARALLEL clause for the table(s) involved, or use the relevant hints ("PARALLEL"). Note also that parallelization is available only for some specific operations (such as full table scans). It won't work for searches using a primary key, as is your case. Daniel
0
8670
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8613
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8326
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7150
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4074
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4164
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2602
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1778
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.