This website works better with JavaScript.
Home
Explore
Help
Sign In
OCA
/
server-tools
Watch
5
Star
0
Fork
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
928
Commits
13
Branches
0
Tags
45 MiB
Tree:
40106f50fc
10.0
11.0
12.0
12.0-mig-module_prototyper
12.0-mig-module_prototyper_last
12.3
13.0
14.0
6.1
7.0
8.0
9.0
dav
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '40106f50fc'
${ noResults }
server-tools
/
attachment_unindex_content
/
models
/
__init__.py
1 line
28 B
Raw
Normal View
History
[ADD] attachment_unindex_content: Module to disable file indexation This module is intended to disable the indexation of data on the ir.attachment model. 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. 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.
5 years ago
from
.
import
ir_attachment