Fuzzy Search of URL in Attachments
This module creates a trigram index for the field url in ir_attachment in order to make more efficient sql searches with like operand and this field. In large dbs it can speed up a lot interface loading, for example when logging in.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds a trigram index on the URL field of attachments so that searching or filtering attachments by URL is much faster on large databases.
This module does not add any new screen, menu or button. It works behind the scenes to make searching attachments by their web address (URL) faster.
When installed, it creates a special database index of type "gin" on the url field of the ir_attachment model, using the fuzzy search framework provided by the base_search_fuzzy module. This index is stored as a trgm.index record.
- The index targets the URL field of attachments, so lookups that use "contains" or "like" style searches on that field can be answered much faster.
- It is most useful on large databases, where such searches can otherwise slow down screens that load many attachments, for example when logging in or opening attachment lists.
- No business rules, checks, default values, emails or scheduled jobs are added by this module.
In short, it is a performance-only module: it changes how the database stores search data for attachment URLs, not what users see or do in Odoo.
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/server-tools.
terminal Installation and usage
OCA documentation · Odoo 16.0Installation
Source · Odoo 16.0(same as the base module)
- The PostgreSQL extension
pg_trgmshould be available. In debian based distribution you have to install thepostgresql-contribmodule. - Install the
pg_trgmextension to your database or give your postgresql user theSUPERUSERright (this allows the odoo module to install the extension to the database).
Configuration
Source · Odoo 16.0You just have to install this module and the Index for 'url' field in ir_attachment model will be automatically created.
No verified information in OCA: Usage.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.