Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asxIu-0006Nq-IE for pgsql-performance@arkaria.postgresql.org; Wed, 20 Apr 2016 18:56:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1asxIt-0001E1-W6 for pgsql-performance@arkaria.postgresql.org; Wed, 20 Apr 2016 18:56:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1asxHE-0007gI-Jn for pgsql-performance@postgresql.org; Wed, 20 Apr 2016 18:55:04 +0000 Received: from hook.sigaev.ru ([93.180.27.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1asxHA-0005ta-9Z for pgsql-performance@postgresql.org; Wed, 20 Apr 2016 18:55:04 +0000 Received: from zorg.sigaev.ru (128-68-250-87.broadband.corbina.ru [128.68.250.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: teodor) by hook.sigaev.ru (Postfix) with ESMTPSA id 52139B191A0; Wed, 20 Apr 2016 21:54:59 +0300 (MSK) Subject: Re: Performant queries on table with many boolean columns To: Rob Imig , pgsql-performance@postgresql.org References: From: Teodor Sigaev Message-ID: <5717D07E.3070802@sigaev.ru> Date: Wed, 20 Apr 2016 21:54:54 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.9 (--) 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 > > The obvious thing seems to make a table with ~100 columns, with 1 column > for each boolean property. Though, what type of indexing strategy would > one use on that table? Doesn't make sense to do BTREE. Is there a better > way to structure it? > looks like a deal for contrib/bloom index in upcoming 9.6 release -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/ -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance