[PERFORM] System overload / context switching / oom, 8.3

2010-02-02 Thread Rob
ctive_cache_size = 5000MB default_statistics_target = 100 log_min_duration_statement = 1000 log_checkpoints = on log_connections = on log_disconnections = on log_temp_files = 0 track_counts = on autovacuum = on log_autovacuum_min_duration = 0 Thanks for any ideas! Rob -- Sent via pgsql-perfor

Re: [PERFORM] System overload / context switching / oom, 8.3

2010-02-02 Thread Rob
Scott Marlowe wrote: > On Tue, Feb 2, 2010 at 12:11 PM, Rob wrote: > >> postgresql.conf: >> max_connections = 1100 >> work_mem = 32MB >> > > 32MB * 1000 = 32,000MB... And that's if you max out connections and > they each only do 1 sort.

Re: [PERFORM] System overload / context switching / oom, 8.3

2010-02-02 Thread Rob
Kevin Grittner wrote: > Rob wrote: > > >> 8gb ram >> ~240 active databases >> 800+ db connections via tcp. >> > > 8 GB RAM divided by 800 DB connections is 10 MB per connection. You > seriously need to find some way to use connection poolin

[PERFORM] Identical Queries

2007-03-01 Thread Rob Schall
t=0.00..33.62 rows=945 width=8) (actual time=8.189..8.202 rows=2 loops=1) Filter: (istf = true) -> Index Scan using i_destnum on current (cost=0.00..2149.40 rows=534 width=108) (actual time=62.365..517.454 rows=722 loops=2) Index Cond: (current.destnum = &qu

Re: [PERFORM] Identical Queries

2007-03-01 Thread Rob Schall
There are 4 entries (wanted to make the playing field level for this test). There are 2 with true for istf and 2 with false. Rob Stephan Szabo wrote: > On Thu, 1 Mar 2007, Rob Schall wrote: > > >> Question for anyone... >> >> I tried posting to the bugs, and

[PERFORM] Building multiple indexes concurrently

2010-03-16 Thread Rob Wultsch
would benefit from most of the table data it needed being prepopulated in shared buffers. Is this the case? -- Rob Wultsch wult...@gmail.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [PERFORM] Building multiple indexes concurrently

2010-03-17 Thread Rob Wultsch
On Wed, Mar 17, 2010 at 7:30 AM, Tom Lane wrote: > Greg Smith writes: >> Rob Wultsch wrote: >>> At a minimum I assume that if both of the commands were started at >>> about the same time they would each scan the table in the same >>> direction and whichever cr

Re: [PERFORM] Random Page Cost and Planner

2010-05-25 Thread Rob Wultsch
On Tue, May 25, 2010 at 4:26 PM, David Jarvis wrote: > shared_buffers = 1GB > temp_buffers = 32MB > work_mem = 32MB > maintenance_work_mem = 64MB > effective_cache_size = 256MB Shouldn't effective_cache_size be significantly larger? -- Rob Wultsch wult...@gmail.com

Re: [PERFORM] performance of temporary vs. regular tables

2010-05-28 Thread Rob Wultsch
ql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance > I think it would be interesting to create a ram disk and insert into it. In the MySQL community even thought MyISAM has fallen out of use the Memory table (based on MyISAM) is still

Re: [PERFORM] PostgreSQL as a local in-memory cache

2010-06-24 Thread Rob Wultsch
e? Wouldn't a global temporary table have content that is not visible between db connections? A db session many not be the same as a user session. -- Rob Wultsch wult...@gmail.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] performance on new linux box

2010-07-07 Thread Rob Wultsch
the crappy box lied about fsync'ing data and your server is not. Did you purchase a raid card with a bbu? If so, can you set the write cache policy to write-back? -- Rob Wultsch wult...@gmail.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] now() gives same time within the session

2010-07-12 Thread Rob Wultsch
ted the issue. >> >> >> >> create table test_time (time timestamp); >> >> delete from  test_time; >> >> insert into test_time select now(); > > > Use timeofday() instead, now() returns the transaction starting time. Is this part of the SQL

Re: [PERFORM] Using more tha one index per table

2010-07-21 Thread Rob Wultsch
gt; Header) > GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431 2EB0 389D 1DC2 3172 0C99 > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance > That is not true eit

Re: [PERFORM] Using more tha one index per table

2010-07-22 Thread Rob Wultsch
ing a drop down menu for other version of the manual for a page. I have not had time to write a patch, but I think it is something that MySQL does better that pg. As an example take a look at the page on select for MySQL: http://dev.mysql.com/doc/refman/5.1/en/select.html . If you want a earlier or later version they are easily accessible via a link on the left. -- Rob Wultsch wult...@gmail.com

Re: [PERFORM] BBU Cache vs. spindles

2010-10-22 Thread Rob Wultsch
most obvious > example where the atomic write implementation seems to always make disabling > full_page_writes safe. > For the sake of argument, has PG considered using a double write buffer similar to InnodB? -- Rob Wultsch wult...@gmail.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] BBU Cache vs. spindles

2010-10-22 Thread Rob Wultsch
On Fri, Oct 22, 2010 at 10:28 AM, Kevin Grittner wrote: > Rob Wultsch wrote: > >> has PG considered using a double write buffer similar to InnodB? > > That seems inferior to the full_page_writes strategy, where you only > write a page twice the first time it is writt

Re: [PERFORM] BBU Cache vs. spindles

2010-10-22 Thread Rob Wultsch
On Fri, Oct 22, 2010 at 12:05 PM, Kevin Grittner wrote: > Rob Wultsch wrote: > >> I would think full_page_writes=off + double write buffer should be >> far superior, particularly given that the WAL is shipped over the >> network to slaves. > > For a reasonably brie

Re: [PERFORM] BBU Cache vs. spindles

2010-10-22 Thread Rob Wultsch
On Fri, Oct 22, 2010 at 1:15 PM, Kevin Grittner wrote: > Rob Wultsch wrote: > >> not needing full_page_writes would make geographically dispersed >> replication possible for certain cases where it is not currently >> (or at least rather painful). > > Do you have any

Re: [PERFORM] BBU Cache vs. spindles

2010-10-26 Thread Rob Wultsch
On Tue, Oct 26, 2010 at 5:41 AM, Robert Haas wrote: > On Fri, Oct 22, 2010 at 3:05 PM, Kevin Grittner > wrote: >> Rob Wultsch wrote: >> >>> I would think full_page_writes=off + double write buffer should be >>> far superior, particularly given that the WA

Re: [PERFORM] BBU Cache vs. spindles

2010-10-26 Thread Rob Wultsch
On Tue, Oct 26, 2010 at 7:25 AM, Robert Haas wrote: > On Tue, Oct 26, 2010 at 10:13 AM, Rob Wultsch wrote: >> The double write buffer is one of the few areas where InnoDB does more >> IO (in the form of fsynch's) than PG. InnoDB also has fuzzy >> checkpoints (which h

Re: [PERFORM] BBU Cache vs. spindles

2010-10-27 Thread Rob Wultsch
On Wed, Oct 27, 2010 at 6:55 PM, Robert Haas wrote: > On Wed, Oct 27, 2010 at 12:41 AM, Rob Wultsch wrote: >> On Tue, Oct 26, 2010 at 7:25 AM, Robert Haas wrote: >>> On Tue, Oct 26, 2010 at 10:13 AM, Rob Wultsch wrote: >>>> The double write buffer is one of the fe

[PERFORM] Group commit and commit delay/siblings

2010-12-05 Thread Rob Wultsch
removed? -- Rob Wultsch wult...@gmail.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] Group commit and commit delay/siblings

2010-12-05 Thread Rob Wultsch
rmance when using commit_delay compared to the default. > > Anyway  I would recommended right now to stick with the default and > not really use it. It does the sync absorbtion well if you have two > many users (though not perfect). Sounds like this setting should go away unless there is

Re: [PERFORM] Compared MS SQL 2000 to Postgresql 9.0 on Windows

2010-12-17 Thread Rob Wultsch
have a raid card? Is it properly configured? -- Rob Wultsch wult...@gmail.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] Why we don't want hints

2011-02-13 Thread Rob Wultsch
e an idea that >   avoids the problems that have been observed with other hint systems, >   that could lead to valuable discussion. > > That seems to me to characterize the nuance. Where exactly are the problems with other systems noted? Most other systems have this option so saying &quo

Re: [PERFORM] commit so slow program looks frozen

2006-10-31 Thread Rob Lemley
Merlin Moncure wrote: > On 10/28/06, Simon Riggs <[EMAIL PROTECTED]> wrote: >> On Thu, 2006-10-26 at 11:06 -0400, Merlin Moncure wrote: >> > On 10/26/06, Carlo Stonebanks <[EMAIL PROTECTED]> wrote: >> > > This is pretty interesting - where can I read more on this? >> Windows isn't >> > > actually h

Re: [PERFORM] Quad processor options

2004-05-11 Thread Rob Sell
the ram. Don't take this as god's honest fact but just keep it in mind when considering a Xeon solution, it may be worth your time to do some deeper research into this. There is some on this here http://www4.tomshardware.com/cpu/20030422/ Rob ---(end of br

Re: [PERFORM] Configuring PostgreSQL to minimize impact of checkpoints

2004-05-11 Thread Rob Sell
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of scott.marlowe Sent: Tuesday, May 11, 2004 2:23 PM To: Paul Tuckfield Cc: [EMAIL PROTECTED]; Matthew Nuzum; [EMAIL PROTECTED]; Rob Fielding Subject: Re: [PERFORM] Configuring PostgreSQL to minimize impact of

Re: [PERFORM] Configuring PostgreSQL to minimize impact of checkpoints

2004-05-11 Thread Rob Fielding
had so much free I/O we recently installed another app on there (based on mysql, sorry) which runs concurrently, and itself 4 times faster than it originally did... YMMV, just my 2p. -- Rob Fielding [EMAIL PROTECTED] www.dsvr.co.uk Development Designer Servers Ltd --

Re: [PERFORM] OT: Help with performance problems

2004-04-26 Thread Rob Fielding
2 channel gets 40MB/sec max (pg_xlog :) And HOW LONG does it take to detect drives during POSTo never mind ... I really just wanna rant :) There should be a free counseling service for enraged sysops. -- Rob Fielding [EMAIL PROTECTED] www.dsvr.co.uk Development

Re: [PERFORM] System overload / context switching / oom, 8.3

2010-02-03 Thread Rob Lemley
ed the postmaster. Kind of off-topic, but a Linux kernel parameter that's often not set on database servers is elevator=deadline which sets up the io scheduling algorithm. The algorithm can be viewed/set at runtime for example the disk /dev/sdc in /sys/block/sdc/queue/scheduler. Rob

[PERFORM] How to force Nested Loop plan?

2003-08-30 Thread Rob Nagler
27;ve figured out that the second plan is slow, because it is writing a huge result set to disk (+200MB). This doesn't make sense to me, since sort_mem is 32000. Is there a way to tell the optimizer to use Nested Loop plan always instead of the Merge/Join plan? Turning off enable_mergejoin is

Re: [PERFORM] How to force Nested Loop plan?

2003-08-30 Thread Rob Nagler
. This particular query has been one of the reasons. Maybe this change will help us stay with Postgres. Thanks, Rob ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [PERFORM] How to force Nested Loop plan?

2003-08-30 Thread Rob Nagler
eavily. With Postgres, we just tried it and it worked. This is the first query where we ran out of ideas to try. BTW, everybody's help on this list is fantastic. Usually, I can find the answer to my question (and have been doing so for 3 years) on this list without asking. Thanks, Rob

Re: [PERFORM] How to force Nested Loop plan?

2003-08-31 Thread Rob Nagler
ough we are planning on adding more memory to production. Rob ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Re: [PERFORM] How to force Nested Loop plan?

2003-08-31 Thread Rob Nagler
s were required. Are there plans for explicit hints to the planner? Thanks, Rob ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

[PERFORM] reindex/vacuum locking/performance?

2003-10-03 Thread Rob Nagler
wn the app on Sat at 3 a.m and reimport with a fixed time period than to live through reindexing/vacuuming which may deadlock. Am I missing something? Thanks, Rob ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http:

Re: [PERFORM] reindex/vacuum locking/performance?

2003-10-03 Thread Rob Nagler
e, but it seemed like the clients were locked for the entire "reindex table bla" command. Sorry for lack of detail, but I didn't expect these issues so I wasn't keeping track of the system state as closely as I should have. Next time. :-) Thanks, Rob

Re: [PERFORM] Speeding up Aggregates

2003-10-10 Thread Rob Nagler
diosyncrasies without changing the SQL. It would be like a style sheet in Latex (or Scribe :-) if you are familiar with these typesetting languages. Comments? Rob ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

[PERFORM] vacuum locking

2003-10-17 Thread Rob Nagler
lues aren't changing, but other values in the table are. Any suggestions how to make vacuuming more effective and reducing the time it takes to vacuum? I'd settle for less frequent vacuuming or perhaps index rebuilding. The database can be re-i

Re: [PERFORM] vacuum locking

2003-10-17 Thread Rob Nagler
wade through 5m rows. Assuming I vacuum every 15 minutes, it would seem like max_fsm_pages should be 1000, because that's about what was reclaimed. The default is 1. Do I need to change this? Sorry to be so dense, but I just don't know the right values

Re: [PERFORM] vacuum locking

2003-10-17 Thread Rob Nagler
e'll see how it goes. > ... or configure autovacuum to VACUUM a table when it has 10% dead > tuples. This solution doesn't really fix the fact that VACUUM consumes the disk while it is running. I want to avoid the erratic performance on my web server when

Re: [PERFORM] vacuum locking

2003-10-17 Thread Rob Nagler
dor: DELL Model: PERCRAID Mirror Rev: V1.0 Type: Direct-AccessANSI SCSI revision: 02 Two 10K disks attached. Rob ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [PERFORM] vacuum locking

2003-10-22 Thread Rob Nagler
#x27;ll be running tests in the coming month(s :-) with Oracle to see how it performs under the same load and hardware. I'll keep this group posted. Rob ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [PERFORM] vacuum locking

2003-10-23 Thread Rob Nagler
But swapping out processes could account for > the perceived slowdown in interactive response. The box is a bit memory starved, and we'll be addressing that shortly. I don't think it accounts for 3 minute queries, but perhaps it might. vacuum_mem is 32mb, btw. Rob ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

[PERFORM] Use of multipart index with "IN"

2003-10-24 Thread Rob Messer
orce postgresql to use the full index and still stick with the shorter "field_name in ('...', '...')" syntax? If anyone has any thoughts please let me know. Also it strikes me that perhaps the optimizer could be tweaked to treat the first case like the second one.

Re: [PERFORM] vacuum locking

2003-10-24 Thread Rob Nagler
rom -w 128 -r 128 to -r 16 -w 8192. None of these mattered much when vacuum is running. This is a RAID1 box with two disks. Even with vacuum and one other postmaster running, it's still got to get a lot of blocks through the I/O system. Rob ---(end of broadcast)--

Re: [PERFORM] vacuum locking

2003-10-24 Thread Rob Nagler
win here. That's usually our case. My company almost always has "groupware" problems to solve. Every record has a "realm" (security) foreign key and typically another key. The infrastructure puts the security key on queries to avoid returning the wrong realm's data. Rob

Re: [PERFORM] vacuum locking

2003-10-24 Thread Rob Nagler
nly about 20 different values of f2, so it would be much better to aggregate without sorting. This is the type of query which runs while vacuum runs and I'm sure the two are just plain incompatible. vacuum is read intensive and this query is write intensive. Rob ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [PERFORM] vacuum locking

2003-10-24 Thread Rob Nagler
hits disk probably 3 times as much as the simpler query judging by the amount of time this query takes (33 vs 88 secs). BTW, adding an index to t1.f2 has seriously negative effects on many other DSS queries. I'm still not sure that the sort problem is our only problem when vacuum runs. It&

Re: [PERFORM] vacuum locking

2003-10-27 Thread Rob Nagler
ually, but I'm not sure. I'll be finding out this week. > To convince it to do the right thing you would have to do either: > > SELECT a, t2.name > FROM (SELECT avg(f1),f2 FROM t1 GROUP BY f2) AS t1 > JOIN t2 USING (f2) > > Or use a subquery

Re: [PERFORM] vacuum locking

2003-10-27 Thread Rob Nagler
oth functionally > equivalent. I'll find out soon enough. :-) Rob ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [PERFORM] vacuum locking

2003-10-29 Thread Rob Nagler
en complex queries, oracle wins for our problem. It looks like we'll be migrating to oracle for this project from these preliminary results. It's not just the planner problems. The customer is more familiar with oracle, and the vacuum performance is another problem. Rob --

Re: [PERFORM] vacuum locking

2003-10-30 Thread Rob Nagler
, and how we'll go forward. We have budget in 2003 to spend on this, but only if the situation can be resolved. Otherwise, we'll have to respect the data we are seeing, and think about our choice of technologies. Thanks for the feedback. Rob ---(end of broadc

Re: [PERFORM] vacuum locking

2003-10-30 Thread Rob Nagler
scott.marlowe writes: > t2 was 'vacuum full'ed and analyzed, right? Just guessing. Fresh import. I've been told this includes a ANALYZE. Rob ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [PERFORM] vacuum locking

2003-10-30 Thread Rob Nagler
Tom Lane writes: > Rob Nagler <[EMAIL PROTECTED]> writes: > > q5 and q6 are too complex to discuss here, > > How do you expect us to get better if you don't show us the problems? With all due respect and thanks for the massive amount of help, I have presented the

Re: [PERFORM] Pg+Linux swap use

2003-10-31 Thread Rob Sell
45gb raid 5 array and 1gb of ram. I have read everything I could find on Pg performance tweaked all the variables that were suggested and nothing. Which is why I subscribed to this list, just been lurking so far but this caught my eye. Rob -Original Message- From: [EMAIL PROTECTED] [mai

Re: [PERFORM] Pg+Linux swap use

2003-10-31 Thread Rob Sell
For the record I am running on SuSE with a pretty much stock kernel. Not to sound naïve, but is turning of HT something done in the bios? Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Moran Sent: Friday, October 31, 2003 9:56 AM To: [EMAIL

Re: [PERFORM] Where to start for performance problem?

2003-11-25 Thread Rob Fielding
e it was running so badly - i just wouldn't think it would do that. -- Rob Fielding [EMAIL PROTECTED] www.dsvr.co.uk Development Designer Servers Ltd ---(end of broadcast)--- TIP 9: the planner will ignore your des

Re: [PERFORM] tuning questions

2003-12-04 Thread Rob Fielding
50 ) / 8.2 = shared_buffers decrease random_page_cost to 0.3 and wack up sort mem by 16 times, effective cache size to about 50% RAM (depending on your other settings) and try that for starters. -- Rob Fielding [EMAIL PROTECTED] www.dsvr.co.uk Development Designer S

[PERFORM] Pgbench results

2003-12-06 Thread Rob Sell
er but for people trying to tune their db... Thanks Rob ---(end of broadcast)--- TIP 8: explain analyze is your friend

[PERFORM] WAL Optimisation - configuration and usage

2004-02-28 Thread Rob Fielding
1 29696 10228 16036 801368 0 0 4038 561 1566 3288 16 12 72 Sorry it's so long but I thought some brief info would be better than not. Thanks for reading, -- Rob Fielding Development Designer Servers Ltd ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [PERFORM] WAL Optimisation - configuration and usage

2004-02-29 Thread Rob Fielding
refer to keep as much RAM available for runtime at this time. I'm still hoping that perhaps the uber-pgadmin Mr Lane might reply about my WAL issue :) however I'm getting the feeling now the server is running with a much higher level of performance than it has been. Won't know

Re: [PERFORM] WAL Optimisation - configuration and usage

2004-03-01 Thread Rob Fielding
action log file 0071001F Looks kinda automated, but the times aren't quite even at around 6-10 minutes apart. cheers, -- Rob Fielding [EMAIL PROTECTED] www.dsvr.co.uk Development Designer Servers Ltd ---(end of broadcast)--

Re: [PERFORM] Time to put theory to the test?

2011-04-25 Thread Rob Wultsch
L. Using a crash unsafe product will yield undesirable results when a server crashes. It is also faster for many use cases. InnoDB is crash safe. It is just that simple. -- Rob Wultsch wult...@gmail.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to y

Re: [PERFORM] Hardware advice for scalable warehouse db

2011-07-15 Thread Rob Wultsch
flip bits and postgres does not checksum data, so it will not automatically detect corruption for you. I would steer well clear of SATA unless you are going to be using a fs like ZFS which checksums data. I would hope that a SAN would detect this for you, but I have no idea. -- Rob Wultsch wult...

Re: [PERFORM] TCP Overhead on Local Loopback

2012-04-01 Thread Rob Wultsch
t/versioning/ -- Rob Wultsch wult...@gmail.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] effective_cache_size on 32-bits postgres

2013-03-18 Thread Rob Wultsch
32 bit pg should not matter. Shared buffers and similar variables will be another matter. Why the heck are you running 32 bit pg on a 64 bit system? You are almost certainly doing it wrong. -- Rob Wultsch wult...@gmail.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresq

Re: [PERFORM]

2013-04-21 Thread Rob Wultsch
On Sun, Apr 21, 2013 at 5:46 AM, sunil virmani wrote: > My DB version is little old - 8.1.18. > Your db is exceptionally old and very much unsupported. Vacuum has massively improved since 8.1 . See http://www.postgresql.org/support/versioning/ regarding supported versions.

[PERFORM] Deleting Rows From Large Tables

2013-05-17 Thread Rob Emery
le_b_xref has an index on (table_a_id, table_b_id). There're FK defined on the xref table, hence why I'm deleting from it first. Does anyone have any ideas as to what I can do to make the deletes any faster? I'm running out of ideas! Thanks in advance, -- Rob Emery -- Sent

[PERFORM] Performant queries on table with many boolean columns

2016-04-20 Thread Rob Imig
f indexing strategy would one use on that table? Doesn't make sense to do BTREE. Is there a better way to structure it? Any and all advice/tips/questions appreciated! Thanks, Rob

Re: [PERFORM] Performant queries on table with many boolean columns

2016-04-21 Thread Rob Imig
Hey all, Lots of interesting suggestions! I'm loving it. Just came back to this a bit earlier today and made a sample table to see what non-index performance would be. Constructed data just like above (used 12M rows and 80% true for all 100 boolean columns) Here's an analyze for what I'd expect

Re: [PERFORM] Performant queries on table with many boolean columns

2016-04-22 Thread Rob Imig
11'::"bit") = B'1'::"bit") Rows Removed by Filter: 1191 Total runtime: 9359.593 ms (4 rows) *Time: 9360.072 ms* On Thu, Apr 21, 2016 at 3:34 PM, Rob Imig wro