Improve performance of fetching and storing history and events with the database (#84870)
This commit is contained in:
parent
0ad16e25ef
commit
b8a1537b58
26 changed files with 3696 additions and 281 deletions
|
@ -27,6 +27,7 @@ class MockRow:
|
|||
self.shared_data = json.dumps(data, cls=JSONEncoder)
|
||||
self.data = data
|
||||
self.time_fired = dt_util.utcnow()
|
||||
self.time_fired_ts = dt_util.utc_to_timestamp(self.time_fired)
|
||||
self.context_parent_id = context.parent_id if context else None
|
||||
self.context_user_id = context.user_id if context else None
|
||||
self.context_id = context.id if context else None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue