# HG changeset patch
# User Houzefa Abbasbhay <houzefa.abba@xcg-consulting.fr>
# Date 1589805677 -7200
#      Mon May 18 14:41:17 2020 +0200
# Branch 11.0
# Node ID 6e17210958b7832aa943ef41c0fcffb55fdb97ab
# Parent  f5b3de757af178cb35f7f82800fc8de200a37584
Add an SQL index on ``envelope_id``

WHERE queries in xbus-odoo's emitter on this column.

diff --git a/models/xbus_emitter_job.py b/models/xbus_emitter_job.py
--- a/models/xbus_emitter_job.py
+++ b/models/xbus_emitter_job.py
@@ -111,6 +111,7 @@
         string="Envelope ID",
         help="The ID of the envelope that was forged by xbus-odoo and sent "
         "into the bus",
+        index=True,  # WHERE queries in xbus-odoo's emitter on this column.
     )
 
     process_id = fields.Char(