473,396 Members | 1,775 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.

How To Execue Queris Fastly

18
Hi, Friends

I have a table with 2 lakh records (one text field, one int4 field, and a Gemetry field). When I was executing the query using Binary cursors, It was taking nearly 35 seconds. I am executing my query as follows

BEGIN;
DECLARE MyCursor BINARY CURSOR for select Field1,Field2(Geometry Field) from Table;

Fetch All into MyCursor;

Here I have Just write the loop from 1 to 200000 with out doing any thing like below.

for (int i=0;i<PQntuples(res);i++)
{
for (int j=0;j<PQnfields(res);j++)
{
}
}

close MyCursor;
END;

I have also tried various index mechanisms also. But I haven't get any Performence. Can I use the Indexes To get Query results Fast?

Can anybody tell me how to Execute The Queries fastly.

ThanQ
Apr 13 '07 #1
1 1976
michaelb
534 Expert 512MB
Please follow the Posting Guidelines when you post into forum.
Apr 13 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Giulio | last post by:
I'm doing a class who takes in constructor a vector<int> keeps and makes some statistic on the vector whitout modifiing it. I would like not to make a copy of the vector for the class. to let the...
0
by: Carl | last post by:
Hi, I have found a way to map attributes (columns) to column headings. But this runs really slow. Is there a way to improve it? Thanks, Carl <?xml version="1.0" encoding="utf-8" ?>...
1
by: Hi5 | last post by:
Hi, I an new to Access,I was trying to make some queries from the 6 tables, which are holding all data in my DB. but there seems to be a problem with access understanding of Primary /foregn keys,...
0
by: SamIAm | last post by:
Hi There I have a usercontrol that gets some code using a server.execute. I have included it in my webpage and it seems to work fine until I do a PostBack. Anybody had this problem before? S
1
by: Uzytkownik | last post by:
I've some function: function show($id) { $title = $text = $date = $nick = NULL; $stmt = $this->base->stmt_init(); $stmt->prepare("SELECT title,text,datetime,nick FROM posts LEFT JOIN authors ON...
1
by: WaZaA | last post by:
i am using dev c++ and i would like to make queries in mysql database.are there any libraries i could possibly find ?
1
by: gouse | last post by:
Hello Friends, In a Table I am inserting more than 50,000 Records one by one. It was taking a lot of time . Is it There any good approach/solution for inserting records more than 50,000 one by one...
0
by: Akrishnamohan | last post by:
Subject:How to Run Action Queries in VBA-TERADATA?? Message: hi, Im trying in exceuting an action queris in Vba. Im able to connect to teradata. after connection,im imporitng through text pad...
0
by: ajayvaram | last post by:
Hi, Example XML: <Data> <Plan StartDate="2008-01-01" Age="65" Frequency="12" /> ... <Customer Id="1" DateOfBirth="1952-06-08" Sex="Female" Age="65" /> -------<Fund FundName="002-066"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.