ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns@altlinux.org>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] postgresql index row
Date: Fri, 12 Nov 2010 12:58:02 +0300
Message-ID: <m3tyjmn9sl.fsf@t510.oxyum.localnet> (raw)
In-Reply-To: <AANLkTi=kHsNE7RZKp88jVdqH4Mqe6kJRwkm02McyoeY7@mail.gmail.com>

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

Igor Zubkov <igor.zubkov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
writes:

> Hi!
>
> Никто не сталкивался вот с таким?
>
> ==  AddIndexOnChangelogtext: migrating ========================================
> -- add_index(:changelogs, :changelogtext)
Ну во первых и впрямь, "а нахрена?!".

А во вторых оно всё равно не будет хорошо работать. Если вам нужен поиск
по тексту - то надо пользоваться FTS движками. В PostgreSQL например
встроен tsearch2. Из отдельных - Sphinx весьма неплох, да и настроить не
имея опыта его проще чем tsearch2.

А обычные btree индексы нормально искать по тексту всё равно не
позволят. А если нужна проверка на уникальность, то там и индекса от
какого-нить хэша хватит.

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

  parent reply	other threads:[~2010-11-12  9:58 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         ` Денис Смирнов
2010-11-13 10:07         ` Ivan Fedorov
2010-11-12  9:58 ` Ivan Fedorov [this message]
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=m3tyjmn9sl.fsf@t510.oxyum.localnet \
    --to=ns@altlinux.org \
    --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