Navigation überspringen
Inverted indexes are the perfect structure for text search.
0:00 / 0:36

Inverted indexes are the perfect structure for text search.

Ben Dicken

@BenjDicken48.165 Follower

Auf X besuchen

32.297 Aufrufe

Inverted indexes are the perfect structure for text search. "Inverted" here doesn't mean upside-down. Rather that it's an inversion of the original data. We take every distinct word from a set of documents and build a "posting list" of references back to every location where that word is used. When structured right, this lets databases like Postgres do fast lookup of words and phrases. TIN takes all this to the next level for Postgres. Span queries, fuzzy matching, wildcard matching, regex. All while strictly holding to Postgres durability, replication, and transactional semantics. Also, it's FAST. Who doesn't love a good benchmark?

10 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Eddy

    @eddy_builds

    FAST balls indeed

    4 Likes

  • Profilbild von Rishabh Chauhan

    @rishabhc32

    will you open source it?

    1 Like

  • Profilbild von Ratul Dawar

    @ratuldawar18

    But this doesn’t include like queries right?

    1 Like

  • Profilbild von Ben Dicken

    @BenjDicken

    The index is the structure for making searches fast. TIN has a complete syntax for specifying search queries, TINQL

  • Profilbild von Samantha

    @SeoSamantha

    Hi Ben, just following up on the DM I just sent regarding a potential Bloomberg interview. Would love to hear from you when you get a chance.

  • Profilbild von shane borden 🛩️

    @sborden76

    How did you resolve the hot block 0 issue with regular GiN indexes. No more pending list? Fast update?

  • Profilbild von Darius Rey

    @Xrey_Trading

    I Use it too I how I can Filter/orga my data in the cash (Looked by superbuffer)

  • Profilbild von Wanten

    @WantenMN

    @grok 这个索引方式支持多字符串词组吗?

  • Profilbild von liprais

    @liprais

    good idea,now try with chinese texts

  • Profilbild von Pankaj Kumar

    @pankajkumarhq

    Half the teams I see bolt on Elasticsearch before they have 10k rows. Postgres was fine, Ben.