in reply to Re: Faster of two options for finding keywords in a database
in thread Faster of two options for finding keywords in a database
keyword || id_reference_to_text_column
then query that table with your keywords like "select id_reference_to_text_column from lookup_table where keyword in (key1, key2, ...)" or however you do that in postgres. Then you could simply sum up the occurrences of each id_reference_to_text_column.
Or faster with group by (mysql syntax)
create table tmp (kwd varchar(255), idx integer, primary key (kwd, idx))populate table ... then query it like
select idx, count(*) from tmp where kwd in ("heugh", "stook", "tanti") + group by idx
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Faster of two options for finding keywords in a database
by NERDVANA (Priest) on Feb 18, 2024 at 03:46 UTC |