79469829

Date: 2025-02-26 13:07:29
Score: 1.5
Natty:
Report link
  1. Regarding the issue with FTS5 returning no results - have you populated your FTS5 table with the data? (https://stackoverflow.com/a/69981377/11190073)

  2. where xxx like '%yyy%' - no index and no embedded full-text search solutions of RDBMS(at least from my experience with MySQL and MariaDB fulltext solutions) yields better performance results, than search engines like Lucene/ElasticSearch/... Of course it hugely depends on data cardinality and your DB configuration - if your orders table is in hundreds/thousands/tensOfThousands, where o.note like '%COOP%' might perform just OK since your DB will probably cache all your data in memory, but if you're talking about hundredsOfThousands/millions and beyond, don't even consider where clause with like operand

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: El El