SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Replace


Replace

Author
Message
shobanapraveen
shobanapraveen
SSC-Enthusiastic
SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)

Group: General Forum Members
Points: 137 Visits: 46
Can any one help to get quick results while running query in PostgreSQL?

when i run my query its taking such a long time due to huge data's in db.

Thanks,
Shobana
ChrisM@Work
ChrisM@Work
SSC-Forever
SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)

Group: General Forum Members
Points: 43105 Visits: 20015
shobanapraveen (10/3/2013)
Can any one help to get quick results while running query in PostgreSQL?

when i run my query its taking such a long time due to huge data's in db.

Thanks,
Shobana


Have you tried posting in a PostgreSQL forum? Most folks reading this will have no experience of the product.
Failing that, good query design practices for SQL Server are quite likely to apply to a PostgreSQL query. Post it up!

“Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Exploring Recursive CTEs by Example Dwain Camps
mamagama
mamagama
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 2
try to search n propertly forum, i dont have information about it
shobanapraveen
shobanapraveen
SSC-Enthusiastic
SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)

Group: General Forum Members
Points: 137 Visits: 46
Hi,

Any online to help me in fetching the data's quickly. if i run the query below its taking such a long time due to huge data's(1k) in each tables. Can any one help me in this..............

Thanks,
Shobana


DROP TABLE IF EXISTS OwnerMessageList1;
DROP TABLE IF EXISTS OwnerMessageList2;

CREATE TEMPORARY TABLE OwnerMessageList1 (
id serial,
name varchar(100)
);

CREATE TEMPORARY TABLE OwnerMessageList2 (
id serial,
srcname varchar(100),
url varchar(1000),
username varchar(200)
);


INSERT INTO OwnerMessageList1
(name)
select unnest(string_to_array(replace(replace('$filter', 'itime >= ', ''),'itime <= ',''),'and'));

INSERT INTO OwnerMessageList2
(srcname,url,username)
select distinct am.src,am.url,am.user from "FGT60B3908669009-wlog-1380091698" am where cast(am.itime as integer) between (select cast(name as integer) from OwnerMessageList1 where id=1) and (select cast(name as integer) from OwnerMessageList1 where id=2) ;

select am.srcname,am.url,am.username,abstime(cp.itime) as itime ,abstime(cp.dtime) as dtime from "SYSLOG-C0A80A41-glog-1380349435" cp join OwnerMessageList2 am on cp.msg LIKE '%'||am.srcname||'%' where cast(cp.itime as integer) between (select cast(name as integer) from OwnerMessageList1 where id=1) and (select cast(name as integer) from OwnerMessageList1 where id=2) order by cp.itime desc
shobanapraveen
shobanapraveen
SSC-Enthusiastic
SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)SSC-Enthusiastic (137 reputation)

Group: General Forum Members
Points: 137 Visits: 46
Hi,



Any one help me to insert datas into mysql.


Thanks,
Shobana
Sean Pearce
Sean Pearce
SSCarpal Tunnel
SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)

Group: General Forum Members
Points: 4230 Visits: 3436
shobanapraveen (10/8/2013)
Hi,

Any one help me to insert datas into mysql.

Thanks,
Shobana

http://dev.mysql.com/doc/



The SQL Guy @ blogspot

@SeanPearceSQL

About Me
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search