Repository
OCA/server-tools · module folder · Try on Runboat
Module version
1.0.0
Category
Tools
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-tools
Last tracking update
2026-08-17 18:05:55
Authors
Vauxoo, Odoo Community Association (OCA)
Maintainers
Vauxoo, Odoo Community Association (OCA)
Committers
Moises Lopez - https://www.vauxoo.com/, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None
Description
This module disables the indexation of attachments content.

Attachment model has a field called 'index_content' where the content of
the attachment is read and stored directly in the database. This field
is useful in order to search content of a file. But most of cases it is
not used, so, you can install this module in order to:

- **Avoid Duplicating Data:** Because indexation extracts text content
  from files and put it on the database in order it could be searched,
  but this implies you have the file data in your `filestore` directory,
  and also part (or sometimes all) of that data in your database too.
- **Improve Performance:** Since not all indexed files are plain text,
  they require extra process to read them.

Maybe you could try to uninstall modules like `document` in order to
disable its indexation features, but you could face the uninstallation
of other modules that could be useful for you (e.g, `hr_recruitment`
depends on that).

But even if you don't have `document` installed, you'd still have plain
text content indexation by default. As you can see in this SQL query
results, indexation is active even without it:

[![SQL Query result showing indexed content](https://user-images.githubusercontent.com/442938/67894113-45d27a80-fb2e-11e9-9a22-ba43d8b444c5.png)](https://user-images.githubusercontent.com/442938/67894113-45d27a80-fb2e-11e9-9a22-ba43d8b444c5.png)

Using this module you will not require to uninstall any module to
disable the attachment content indexation, because we directly disable
it at `ir.attachment` base.

Also, after the installation, the `index_content` field on attachments
already recorded in database will be cleared.

Code Analysis

Views touched (0)

No views found for this module.

HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
555 days ago
Last activity
141 days ago
Repository
OCA/server-tools
Pull request
[17.0] [MIG] attachment_unindex_content: Migration to 17.0 (#3197)