Skip to content

Use same transaction in different methods #16

Answered by rkistner
aleripe asked this question in Q&A
Discussion options

You must be logged in to vote

Performance is tricky, and I can't tell why it would be slower without seeing a specific example.

If you were already using sqflite_common_ffi, many operations would have similar performance between the two libraries. I did a blog post a while back comparing performance between different libraries - that may give you a starting point for the general performance you should expect:
https://www.powersync.co/blog/flutter-database-comparison-sqlite-async-sqflite-objectbox-isar

Going off those benchmarks:

  1. When using individual operations without transactions, sqlite_async is much faster due to using the WAL mode.
  2. Many individual insert/update/delete operations (thousands) in a transaction may …

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
10 replies
@rkistner
Comment options

@aleripe
Comment options

@aleripe
Comment options

@rkistner
Comment options

Answer selected by aleripe
@aleripe
Comment options

Comment options

You must be logged in to vote
6 replies
@aleripe
Comment options

@rkistner
Comment options

@aleripe
Comment options

@rkistner
Comment options

@aleripe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants