Skip to content

Improved count_words_in_array(text[])#9

Open
peterlindsten wants to merge 1 commit intojankovicsandras:mainfrom
peterlindsten:patch-2
Open

Improved count_words_in_array(text[])#9
peterlindsten wants to merge 1 commit intojankovicsandras:mainfrom
peterlindsten:patch-2

Conversation

@peterlindsten
Copy link
Copy Markdown
Contributor

Pure SQL version that should always perform faster

@peterlindsten
Copy link
Copy Markdown
Contributor Author

5-6 times faster on my particular dataset.

Old:

Seq Scan on chunks_body_bm25i_docsbm25plus  (cost=0.00..4081.92 rows=9292 width=32) (actual time=0.086..5565.100 rows=9292 loops=1)
Planning Time: 0.051 ms
Execution Time: 5565.376 ms

New:

Seq Scan on chunks_body_bm25i_docsbm25plus  (cost=0.00..4081.92 rows=9292 width=32) (actual time=0.371..954.820 rows=9292 loops=1)
Planning Time: 0.147 ms
Execution Time: 955.082 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant