ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@freesource.info>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] postgresql index row
Date: Sat, 13 Nov 2010 11:49:04 +0300
Message-ID: <20101113084904.GA7348@mw.mithraen.ru> (raw)
In-Reply-To: <20101113092310.306f08b2@satellite.immomsk.ru>

[-- Attachment #1: Type: text/plain, Size: 752 bytes --]

On Sat, Nov 13, 2010 at 09:23:10AM +0300, Alex Gorbachenko wrote:

AG> строго говоря, лучше три таблички. id(PK),package_name -<
AG> id(PK),)(package_id,package_version)UNIQUE) -< id(PK),((name_version_id,
AG> CVE)UNIQUE). индексы очевидны.
AG> join в данном случае дешёвый.

Если для package_name использовать hash-index'ы, то если я правильно понимаю --
этот вариант будет даже чуточку медленнее.

AG> и это правильно, но tsearch2 всё равно придётся осилить для поиска по
AG> описаниям пакетов и тем же спискам изменений. осиливать там ровно 2
AG> страницы текста.

Это да. Кстати я пока так и не осилил :)

-- 
С уважением, Денис

http://mithraen.ru/
----------------------------------------------------------------------------

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2010-11-13  8:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-12  2:05 Igor Zubkov
2010-11-12  7:47 ` Alexey I. Froloff
2010-11-12 16:06   ` Igor Zubkov
2010-11-12 16:25     ` Alexey I. Froloff
2010-11-12 16:44       ` Денис Смирнов
2010-11-12 16:39     ` Денис Смирнов
2010-11-13  6:23       ` Alex Gorbachenko
2010-11-13  8:49         ` Денис Смирнов [this message]
2010-11-13 10:07         ` Ivan Fedorov
2010-11-12  9:58 ` Ivan Fedorov
2010-11-12 10:48 ` Денис Смирнов
2010-11-12 12:25   ` [sisyphus] [JT] " Ivan Fedorov
2010-11-13  4:31     ` REAL

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101113084904.GA7348@mw.mithraen.ru \
    --to=mithraen@freesource.info \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git