Skip to content

Remove slower defer calls to improve INSERT performance #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 2, 2024

Conversation

mugikhan
Copy link
Contributor

@mugikhan mugikhan commented Apr 2, 2024

This pull request improves the performance of write operations especially INSERTs made outside a transaction context. The query time was reduced from an average time of ~14ms to ~2ms.

This was tested using the benchmark test of 1000 INSERTs. The time reduction was noted on both a simulator and a real device.

Close context before resolving locks
@mugikhan mugikhan requested a review from stevensJourney April 2, 2024 08:15
@mugikhan mugikhan marked this pull request as ready for review April 2, 2024 09:40
@mugikhan mugikhan requested a review from stevensJourney April 2, 2024 09:41
@mugikhan mugikhan merged commit aa41435 into main Apr 2, 2024
@mugikhan mugikhan deleted the fix/improve-write-performance branch September 17, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants