juntossomosmais / django-outbox-pattern

A django application to make it easier to use the transactional outbox pattern
MIT License
50 stars 7 forks source link

Add unique index to msg_id and added column for improved query performance. #25

Closed ricardochaves closed 1 year ago

ricardochaves commented 1 year ago

Hello everyone,

I am submitting a pull request that addresses the issue of #24 slow query times and increased load on the database caused by the lack of an index on the msg_id column. My commit, titled "chore: add db_index for added and msg_id fields", adds a unique index to the msg_id column for improved query performance.

This change will significantly reduce the amount of time it takes to search for messages, as well as minimize the amount of resources needed by the database. By ensuring that the msg_id column is indexed, we can provide a more efficient database querys.

github-advanced-security[bot] commented 1 year ago

You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication