Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUtaa-00008x-OO for pgsql-performance@arkaria.postgresql.org; Thu, 27 Aug 2015 09:35:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZUtaa-0003z0-20 for pgsql-performance@arkaria.postgresql.org; Thu, 27 Aug 2015 09:35:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZUtaX-0003xt-UO for pgsql-performance@postgresql.org; Thu, 27 Aug 2015 09:35:18 +0000 Received: from e-mailfilter02.sunet.se ([2001:6b0:8:2::202]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZUtaU-0005Vl-Pl for pgsql-performance@postgresql.org; Thu, 27 Aug 2015 09:35:16 +0000 Received: from smtp1.nordu.net (smtp1.nordu.net [IPv6:2001:948:4:6::32]) by e-mailfilter02.sunet.se (8.14.4/8.14.4/Debian-4) with ESMTP id t7R9ZBvj023065 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 27 Aug 2015 11:35:11 +0200 Received: from kerio.nordu.net (kerio.nordu.net [109.105.110.42]) by smtp1.nordu.net (8.14.7/8.14.7) with ESMTP id t7R9Z7Z7007957 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Aug 2015 09:35:10 GMT VBR-Info: md=nordu.net; mc=all; mv=swamid.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nordu.net; s=default; t=1440668111; bh=ACJ7iRZ0pwMn4LYT9mGGlZJ66A+qBPNQ28wl+y2XAH0=; h=Date:From:To:Subject:In-Reply-To:References; b=XrF5a0GdmxbYwKwEWjmYs7YUziOeCrMmqcEsuSeubEkkEeaI0b+fZUdyPCx2oUP/6 ht5ftl5tLe/x+MWFxm8VNyGDnia2K82J8IJvjEDq3hWnfgyrCKrzbGRS6BvhPcQquw g3qikPeix+R2da9RrXlLTb14EvEVWJ1/kN2eQMgQ= X-Footer: bm9yZHUubmV0 Received: from pyrite ([130.225.198.224]) (authenticated user htj@nordu.net) by kerio.nordu.net (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Thu, 27 Aug 2015 11:35:06 +0200 Date: Thu, 27 Aug 2015 11:35:31 +0200 (CEST) From: Henrik Thostrup Jensen X-X-Sender: htj@pyrite To: Jeff Janes , Emre Hasegeli , pgsql-performance Subject: Re: Gist indexing performance with cidr types In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: CanIt (www . roaringpenguin . com) X-Scanned-By: MIMEDefang 2.74 on 109.105.111.32 X-Spam-Score: undef - 109.105.110.42 is whitelisted. X-p0f-Info: os=unknown unknown, link=Ethernet or modem X-CanIt-Geo: ip=109.105.110.42; country=SE; latitude=59.3294; longitude=18.0686; http://maps.google.com/maps?q=59.3294,18.0686&z=6 X-CanItPRO-Stream: outbound-nordu-net:outbound (inherits from outbound-nordu-net:default, nordu-net:default, base:default) X-Canit-Stats-ID: 0aP9JzbHH - 2a75a4ebdadd - 20150827 X-CanIt-Archive-Cluster: PfMRe/vJWMiXwM2YIH5BVExnUnw Received-SPF: neutral (e-mailfilter02.sunet.se: 109.105.110.42 is neither permitted nor denied by domain htj@nordu.net) receiver=e-mailfilter02.sunet.se; client-ip=109.105.110.42; envelope-from=; helo=smtp1.nordu.net; identity=mailfrom X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Wed, 26 Aug 2015, Jeff Janes wrote: > Any chance you can share the actual underlying data? Sure. I added a snapshot to the repo: https://github.com/job/irrexplorer/blob/master/data/irrexplorer_dump.sql.gz?raw=true > I noticed it wasn't on github, but is that because it is proprietary, or > just because you don't think it is interesting? I hoped it wouldn't be this complicated :-). BGP and IRR data is (mostly) public, but it changes constantly, so there is little sense in putting in the repo, as it is not the authorative source (we have a script to boostrap with instead). > If you loop over the 732 rows yourself, issuing the simple query against each retrieved constant value: > > explain (analyze,buffers) select routes.route from routes where route && $1 > > Does each one take about the same amount of time, or are there some outlier values which take much more time than the others? I wrote a small script to try this out. It queries for each route 20 times to try and suppress the worst noise. I've sorted the results by time and put it here: https://gist.github.com/htj/1817883f92a9cb17a4f8 (ignore the ntp timing issue causing a negative value) Some observations: - v6 is faster than v4 which is expected. - The slowest prefixes by all seem to start bits '11'. However it is only by a factor of 1.5x which is not really significant Best regards, Henrik Henrik Thostrup Jensen Software Developer, NORDUnet -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance