Re: [PERFORM] OT: Data structure design question: How do they count

2006-04-10 Thread Richard Huxton
Brendan Duddridge wrote: Now, initially I thought they would just pre-compute these counts, but the problem is, when you click on any of the above attribute values, they reduce the remaining possible set of matching products (and set of possible remaining attributes and attribute values) by

Re: [PERFORM] OT: Data structure design question: How do they count so fast?

2006-04-10 Thread Brendan Duddridge
Hi Richard (and anyone else who want's to comment!), I'm not sure it will really work pre-computed. At least not in an obvious way (for me! :-)) It's fine to display a pre-computed list of product counts for the initial set of attribute and attribute values, but we need to be able to

Re: [PERFORM] OT: Data structure design question: How do they count so fast?

2006-04-09 Thread Brendan Duddridge
Hi Brandon, Thanks for your suggestion. I'll think about that one. Part of the problem is also trying to figure out what the remaining set of attributes and attribute values are, so that slows it down considerably too. There are many many combinations of attribute values that can be

[PERFORM] OT: Data structure design question: How do they count so fast?

2006-04-08 Thread Brendan Duddridge
Hi,First of all, the reason I'm posting on the PostgreSQL Performance list is we have a performance issue with one of our applications and it's related to the speed at which PostgreSQL can do counts. But it's also related to the data structure we've designed to develop our comparison shopping