Re: More then 1600 columns?

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: More then 1600 columns?
Date: 2010-11-12 08:02:08
Message-ID: AANLkTikSx8Koi+UC1eiViE3Hd+p+rCGMVrZSDj=8SORi@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hey Pavel,

Really ? I am sorry, I'll try !

2010/11/12 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>

> 2010/11/12 Dmitriy Igrishin <dmitigr(at)gmail(dot)com>:
> > Hey Peter,
> >
> > Unfortunately, there is no indexes on arrays (only on expressions).
>
> there are indexes on arrays - you can use a GiST, Gin indexes.
>
> regards
>
> Pavel
>
>
> > With hstore we can easily create GiST index for effective access.
> >
> > 2010/11/12 Peter Bex <Peter(dot)Bex(at)xs4all(dot)nl>
> >>
> >> On Fri, Nov 12, 2010 at 10:17:50AM +0300, Dmitriy Igrishin wrote:
> >> > Hey Mark,
> >> >
> >> > Yeah, I can't imagine an entity in a real project even with more than
> >> > 100
> >> > columns. Its rare case.
> >> > But if you entities (rows/tuples) of some class (table) can contains
> >> > variable
> >> > set of columns (properties) you can look at hstore contrib module.
> >>
> >> What can also work extremely well is storing the data in an array.
> >> If you need to access the array based on more meaningful keys you could
> >> store key/index pairs in another table.
> >>
> >> This approach only works well if you have multiple arrays with the same
> >> layout. You probably also need to build up your query dynamically if
> >> you need to access variable numbers of datapoints.
> >>
> >> Cheers,
> >> Peter
> >> --
> >> http://sjamaan.ath.cx
> >> --
> >> "The process of preparing programs for a digital computer
> >> is especially attractive, not only because it can be economically
> >> and scientifically rewarding, but also because it can be an aesthetic
> >> experience much like composing poetry or music."
> >> -- Donald Knuth
> >>
> >> --
> >> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> >> To make changes to your subscription:
> >> http://www.postgresql.org/mailpref/pgsql-general
> >
> >
> >
> > --
> > // Dmitriy.
> >
> >
> >
>

--
// Dmitriy.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2010-11-12 08:20:35 Re: More then 1600 columns?
Previous Message Pavel Stehule 2010-11-12 07:59:58 Re: More then 1600 columns?