Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WCcae-0003AB-TX for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Feb 2014 22:11:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WCcae-0005Ri-2J for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Feb 2014 22:11:04 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WCcab-0005RX-LF for pgsql-hackers@postgresql.org; Sun, 09 Feb 2014 22:11:01 +0000 Received: from mail.gransy.com ([2001:1528:137::f1]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WCcaT-0006WM-Fe for pgsql-hackers@postgresql.org; Sun, 09 Feb 2014 22:11:00 +0000 Received: from antispam.gransy.com (antispam.gransy.com [77.78.104.124]) by mail.gransy.com (Postfix) with ESMTP id 3AD1D508D72 for ; Sun, 9 Feb 2014 23:10:46 +0100 (CET) X-Virus-Scanned: G-Hosting.cz + Station.cz + Klenot.cz + Subreg.cz amavisd-new at antispam.gransy.com Received: from mail.gransy.com ([82.208.29.194]) by antispam.gransy.com (antispam.gransy.com [77.78.104.124]) (amavisd-new, port 10024) with ESMTP id LjfAPZN_9f25 for ; Sun, 9 Feb 2014 23:10:58 +0100 (CET) Received: from [192.168.1.227] (ip-78-45-139-138.net.upcbroadband.cz [78.45.139.138]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: tv@fuzzy.cz) by mail.gransy.com (Postfix) with ESMTPSA id 96B85508D70 for ; Sun, 9 Feb 2014 23:10:45 +0100 (CET) Message-ID: <52F7FCE6.70501@fuzzy.cz> Date: Sun, 09 Feb 2014 23:10:46 +0100 From: Tomas Vondra User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: pgsql-hackers@postgresql.org Subject: Re: GIN improvements part2: fast scan References: <528533D9.3040501@vmware.com> <52E141BA.5000302@vmware.com> <52E4141E.60609@fuzzy.cz> <52E42AD0.5060600@vmware.com> <52E4AA3A.9000607@fuzzy.cz> <52E53458.2010106@vmware.com> <52E72A10.5040908@fuzzy.cz> <52EE21D1.2080804@vmware.com> <52EED0FC.2060503@fuzzy.cz> <52EEF472.9020106@fuzzy.cz> <52F7F485.6010902@fuzzy.cz> <7d44a67601f19440558ff698a31196d3.squirrel@webmail.xs4all.nl> In-Reply-To: <7d44a67601f19440558ff698a31196d3.squirrel@webmail.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 9.2.2014 22:51, Erik Rijkers wrote: > On Sun, February 9, 2014 22:35, Tomas Vondra wrote: >> On 3.2.2014 07:53, Oleg Bartunov wrote: >>> PS. I used data delicious-rss-1250k.gz from >>> http://randomwalker.info/data/delicious/ >> >> I'm working on extending the GIN testing to include this test (and I'll >> use it to test both for GIN and hstore-v2 patches). >> >> I do have the dataset, but I need the queries too - how did you generate >> the queries for your benchmark? Do you have some query generator at hand? >> >> In your Dublin talk I see just this query type >> >> select count(*) from hs where h @> 'tags=>{{term=>NYC}}'; >> >> but that seems inadequate for representative benchmark. Are there other >> types of queries that need to be tested / might be interesting? E.g. >> queries with multiple search terms etc.? >> > > There is the hstore operators table (Table F-6) that you can perhaps use to generate queries? (I am working on this too.) > At least it contains already a handful of queries. > > To get at the bits in that table, perhaps the perl program attached here helps: > > http://www.postgresql.org/message-id/f29d70631e2046655c40dfcfce6db3c3.squirrel@webmail.xs4all.nl > > YMMV, I guess... It seems to me the purpose of the program is to demonstrate some differences between expected and actual result of an operator. If that's true then it's not really of much use - it's not a query generator. I need a script that generates large number of 'reasonable' queries, i.e. queries that make sense and resemble what the users actually do. Tomas -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers