Skip to content

Update cache_object_provider.dart #1

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

poldz
Copy link

@poldz poldz commented Sep 10, 2020

Transactional lock, when having too many images dowloaded at 1 time, I am sharing this fix to you, hopefully this will solve download errors

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

The PR uses transactions for all database mutable oprations

⤵️ What is the current behavior?

currently its directly updating to db which causes DB lock when too many images are downloaded to cache

🆕 What is the new behavior (if this is a feature change)?

to any database mutable operations, it uses transactions now

💥 Does this PR introduce a breaking change?

no, as far as I know

🐛 Recommendations for testing

test it with very large image list

📝 Links to relevant issues/docs

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated
  • Rebased onto current develop

Transactional lock, when having too many images dowloaded at 1 time, I am sharing this fix to you, hopefully this will solve download errors
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.

1 participant