| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | cultural_sublimation(at)yahoo(dot)com |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Common table expressions and threaded comments |
| Date: | 2009-04-17 14:24:39 |
| Message-ID: | 20469.1239978279@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Cultural Sublimation <cultural_sublimation(at)yahoo(dot)com> writes:
> I need to implement the classical problem of threaded comments in a Postgresql
> database. I know that the upcoming 8.4 release includes Common Table
> Expressions, so I have to ask: is this feature the mother-of-all-solutions
> to the threaded comments problem, or is it still worth investigating ltree?
I don't think you should take CTEs as being the be-all and end-all of
solutions in this area (or any other). In particular I'd be suspicious
about the performance of a CTE-based solution. CTEs are new in 8.4 and
we have done essentially zero optimization work on them. I honestly
doubt if they will be able to match the performance of a single-purpose
solution such as ltree, even after a few years of optimization work.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bill Moran | 2009-04-17 14:33:15 | Re: Looking for advice on database encryption |
| Previous Message | Tom Lane | 2009-04-17 14:10:14 | Re: pgadmin 1.8.4 gives error while backing up |