Better HN
topnewbestaskshowjobs
Log inSign up

jamesgresql

110 karma · joined May 17, 2022 (4y ago) · 64 submissions

Submissions

comment 1w ago · link · parent

Any questions please go for it, ParadeDB team is watching.

comment 1w ago · link · parent

I got this when I got my Macbook Pro M1, but it soon passed (I know diff screen, but I'm pretty sure the same thing).

I nearly took it back before my eyes settled. Good thing I didn't b/c best laptop ever.

comment 1mo ago · link · parent

This is our old pitch, we have our own vector data-type in our main index in beta.

comment 1mo ago · link · parent

pg_search does both vector (this) and full-text (bm25) in a single index.

comment 1mo ago · link · parent

ParadeDB'er here: We are really hoping this can turn into a back and forth, making both of our products better.

6.

Same Query, Three Results: Benchmarking ParadeDB and Postgres FTS(paradedb.com ↗)

1 points · by jamesgresql · 4mo ago · discuss

comment 5mo ago · link · parent

ParadeDB built a benchmark runner to make experimentation easy. This post looks at a real example over three iterations (with wildly different results).

8.

Same Query, Three Results: Benchmarking ParadeDB and Postgres FTS(paradedb.com ↗)

2 points · by jamesgresql · 5mo ago · 1 comment

comment 6mo ago · link · parent

We (ParadeDB) recently started building out our benchmarking infrastructure for cross-backend comparisons.

Rather than taking the usual path of bundling a workload and execution into one neat package, we decided to build a reusable database benchmark runner based on grafana/k6 first.

10.

What We Think About When We Think About Benchmarking(paradedb.com ↗)

1 points · by jamesgresql · 6mo ago · 1 comment

11.

Search Benchmark Wars (A Conversation with Paul Masurel, Creator of Tantivy)(paradedb.com ↗)

2 points · by jamesgresql · 6mo ago · discuss

comment 7mo ago · link · parent

This is great, no more lost terminal screens!

comment 7mo ago · link · parent

"If I had looked at the lexical search and BM25 space in 2016, I would have said it was solved, and that catching up would be nearly impossible."

This interview with Tantivy creator Paul Masurel looks at how wrong I would have been; discussing challenging solved domains, open-source competition done right, and why long-fermented frustration is an underrated driver.

14.

A Conversation with Paul Masurel, Creator of Tantivy(paradedb.com ↗)

2 points · by jamesgresql · 7mo ago · 1 comment

comment 9mo ago · link · parent

Yeah I get that, I threw caution to the wind and did it (which I would normally never dO)

comment 9mo ago · link · parent

I have no affiliation with this product other than being a happy user, but man is it good for finding out exactly why and when your wifi is slow.

Best feature for me being was being able to detect intermittent jitter to my gateway. I never managed to catch this with speed-tests alone.

17.

Why is your Mac WiFi Slow?(whyfi.network ↗)

1 points · by jamesgresql · 9mo ago · 3 comments

comment 9mo ago · link · parent

This is a no-nonsense walkthrough of doing hybrid search inside Postgres without spinning up a separate search service.

A few takeaway: - Postgres’s native `tsvector/ts_rank` stuff works ok for basic text matching, but it doesn’t account for global term frequency like BM25 does , so rankings can feel “flat” or noisy as soon as you go beyond simple queries (it's also slow). - Using a BM25 index (via extensions like `pg_search`) actually gives you relevance scores similar to what you’d expect out of modern search engines, and you can use stemmers/tokenization directly in SQL. BM25 is the star of this story. - Vector search fills in the semantic gaps (so “database optimization” isn’t limited to exact keywords), but you still don’t want to throw out lexical relevance. The trick is making it additive, not just adding scores together. - RRF (Reciprocal Rank Fusion) is a neat practical tool here. It sidesteps trying to normalize totally different scoring systems by just focusing on rank positions.

If you’re building anything where relevance matters (docs, product search, help articles) having BM25 + vector makes a big difference over vanilla FTS + embeddings alone. It also keeps everything in Postgres, which simplifies consistency/ops compared to an external search cluster.

19.

Hybrid Search in PostgreSQL: The Missing Manual(paradedb.com ↗)

1 points · by jamesgresql · 9mo ago · 1 comment

comment 10mo ago · link · parent

I know it sounds obvious, but some people are pretty determined to us it that way!

21.

Elasticsearch was never a database(paradedb.com ↗)

159 points · by jamesgresql · 10mo ago · 106 comments

22.

Elastic style faceted search from PostgreSQL(paradedb.com ↗)

14 points · by jamesgresql · 10mo ago · discuss

23.

ParadeDB Makes Faceted Search 14× Faster Inside PostgreSQL(paradedb.com ↗)

3 points · by jamesgresql · 11mo ago · discuss

comment 11mo ago · link · parent

Hey HN! Author here. We added faceted search capabilities to our `pg_search` extension for Postgres, which is built on Tantivy (Rust's answer to Lucene). This brings Elasticsearch-style faceting directly into Postgres with a 14x performance improvement over a CTE based approach by performing facet aggregations in a single BM25 index pass and making use of our columnar store.

You get the same faceting features you'd expect from a dedicated search engine while maintaining full ACID compliance. Happy to answer technical questions about the implementation!

25.

Teaching Postgres to Facet Like Elasticsearch(paradedb.com ↗)

4 points · by jamesgresql · 11mo ago · 3 comments

comment 11mo ago · link · parent

Haha, I like “good old tokenization”

comment 11mo ago · link · parent

Amazing, will have a read!

comment 11mo ago · link · parent

Chinese, Japanese, Korean etc.. don’t work like this either.

However, even though the approach is “old fashioned” it’s still widely used for English. I’m not sure there is a universal approach that semantic search could use that would be both fast and accurate?

At the end of the day people choose a tokenizer that matches their language.

I will update the article to make all this clearer though!

comment 11mo ago · link · parent

100%, maybe we should do a follow up on other types of tokenization.
123