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.

36 lines
1.7 KiB

  1. This module disables the indexation of attachments content.
  2. Attachment model has a field called 'index_content' where the content of the
  3. attachment is read and stored directly in the database. This field is useful in
  4. order to search content of a file. But most of cases it is not used, so, you
  5. can install this module in order to:
  6. - **Avoid Duplicating Data:** Because indexation extracts text content from
  7. files and put it on the database in order it could be searched, but this
  8. implies you have the file data in your ``filestore`` directory, and also part
  9. (or sometimes all) of that data in your database too.
  10. - **Improve Performance:** Since not all indexed files are plain text,
  11. they require extra process to read them.
  12. Maybe you could try to uninstall modules like ``document`` in order to disable
  13. its indexation features, but you could face the uninstallation of other modules
  14. that could be useful for you (e.g, ``hr_recruitment`` depends on that).
  15. But even if you don't have ``document`` installed, you'd still have plain text
  16. content indexation by default. As you can see in this SQL query results,
  17. indexation is active even without it:
  18. .. |sql_query| image:: https://user-images.githubusercontent.com/442938/67894113-45d27a80-fb2e-11e9-9a22-ba43d8b444c5.png
  19. :target: https://user-images.githubusercontent.com/442938/67894113-45d27a80-fb2e-11e9-9a22-ba43d8b444c5.png
  20. :height: 200px
  21. :width: 400px
  22. :alt: SQL Query result showing indexed content
  23. |sql_query|
  24. Using this module you will not require to uninstall any module to disable
  25. the attachment content indexation, because we directly disable it at
  26. ``ir.attachment`` base.
  27. Also, after the installation, the ``index_content`` field on attachments
  28. already recorded in database will be cleared.