Currently, I am running the following code:
User.query.filter(or_(User.username.contains(query), User.name.contains(query)))
But naturally, when you're hitting a few million records and searching multiple columns the LIKE "%query%"
starts to get expensive. Whoosh
is heavily outdated, and sqlalchemy-fulltext-search
does not seem to want to work with my Flask structures. Do I have any options left to consider, other than a switch to PostgreSQL
?
sqlalchemy-fulltext-search
? – Masonite