pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Valentina Tedone <valetedo88@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: execution time
Date: Wed, 18 Feb 2015 10:19:57 -0500
Message-ID: <1020.1424272797@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFgLY6w8Thi0wN1QMswrH8J7T03wns5J9MxRmvjEC6tT6ezEOA@mail.gmail.com>
References: <CAFgLY6w8Thi0wN1QMswrH8J7T03wns5J9MxRmvjEC6tT6ezEOA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Valentina Tedone <valetedo88@gmail.com> writes:
> The problem is about time, infact to solve i.e. this query:

> "SELECT * FROM data d WHERE d.type = 7 AND
> (((d.metadata->'chromosome'->>'value')::text IN ('3','7')) AND
> ((d.metadata->'somatic'->>'value')::boolean = 'true')) and
> ((d.metadata->'filter'->>'value')::text IN ('pass')) LIMIT 30;"

> the first db has an average time about  52.876 ms, the second about
> 470.1172 ms and the bigger one about 58.3572 ms.

> Why is there this difference?it is only for the different strategy?

You have not provided enough detail to let anyone do more than guess.
There is advice here about how to ask answerable questions:
https://wiki.postgresql.org/wiki/Slow_Query_Questions

			regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (2+ messages)

Message-ID: <1020.1424272797@sss.pgh.pa.us>
Permalink:  ../1020.1424272797@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1020.1424272797@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, valetedo88@gmail.com
  Subject: Re: execution time
  In-Reply-To: <1020.1424272797@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox