Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: directory tree query with big planner variation


  • From: Michael Stone <mstone+postgres(at)mathom(dot)us>
  • To: Axel Rau <Axel(dot)Rau(at)Chaos1(dot)DE>
  • Cc: pgsql-performance(at)postgresql(dot)org
  • Subject: Re: directory tree query with big planner variation
  • Date: Mon, 31 Jul 2006 07:15:42 -0400
  • Message-id: <20060731111540.GE2900@mathom.us> <text/plain>

On Mon, Jul 31, 2006 at 12:48:11PM +0200, Axel Rau wrote:
              WHERE P.path ~ '^%@/[^/]*/$' ) AS NLPC

This can't be indexed. You might try something like WHERE P.path LIKE '%(at)%' AND P.path ~ '^%@/[^/]*/$'

The schema could be a lot more intelligent here. (E.g., store path seperately from file/directory name, store type (file or directory) seperately, etc.) Without improving the schema I don't think this will ever be a speed demon.

Mike Stone



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group