Skip to content

Commit

Permalink
Merge branch 'master' of github.com:RasaHQ/rasa
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed May 31, 2019
2 parents ca977cf + 8fd7a06 commit 9bc75c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ This project adheres to `Semantic Versioning`_ starting with version 1.0.

Added
-----
- automatic creation of index on the ``sender_id`` column when using an SQL
tracker store. If you have an existing data and you are running into performance
issues, please make sure to add an index manually using
``CREATE INDEX event_idx_sender_id ON events (sender_id);``.

Changed
-------
Expand Down
2 changes: 1 addition & 1 deletion rasa/core/tracker_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class SQLEvent(Base):
__tablename__ = "events"

id = Column(Integer, primary_key=True)
sender_id = Column(String, nullable=False)
sender_id = Column(String, nullable=False, index=True)
type_name = Column(String, nullable=False)
timestamp = Column(Float)
intent_name = Column(String)
Expand Down

0 comments on commit 9bc75c0

Please sign in to comment.