Skip to content

Commit

Permalink
Merge PR #179 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by lmignon
  • Loading branch information
OCA-git-bot committed Dec 14, 2023
2 parents 73a4f07 + fc1b906 commit 79908f3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion connector_search_engine/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Connector Search Engine
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f9a33dd2d43e9042126c205851faf5e5b35433f9e0e10c1758002ec9952d5ada
!! source digest: sha256:b0906ad10aa3a2c9fdbee1ad110901f5a499ddd5568882d60ed44f6bf8d937ac
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion connector_search_engine/models/se_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class SeBinding(models.Model):
)
date_recomputed = fields.Datetime(readonly=True)
date_synchronized = fields.Datetime(readonly=True)
data = fields.Json(readonly=True)
data = fields.Json(readonly=True, prefetch=False)
data_display = fields.Text(
compute="_compute_data_display",
help="Include this in debug mode to be able to inspect index data.",
Expand Down
5 changes: 5 additions & 0 deletions connector_search_engine/readme/newsfragments/179.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Lower memory consumption by disabling prefetch for the field 'data' on the binding model.

The field 'data' is a json field that is not used in the view or common management
operations of the binding model. This json field can be very large. By disabling
the prefetch, we avoid to overload the database and Odoo with useless data.
2 changes: 1 addition & 1 deletion connector_search_engine/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Connector Search Engine</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f9a33dd2d43e9042126c205851faf5e5b35433f9e0e10c1758002ec9952d5ada
!! source digest: sha256:b0906ad10aa3a2c9fdbee1ad110901f5a499ddd5568882d60ed44f6bf8d937ac
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/search-engine/tree/16.0/connector_search_engine"><img alt="OCA/search-engine" src="https://img.shields.io/badge/github-OCA%2Fsearch--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/search-engine-16-0/search-engine-16-0-connector_search_engine"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/search-engine&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Base module for connecting Odoo with external search engines. This addon is
Expand Down

0 comments on commit 79908f3

Please sign in to comment.