Skip to content

Conversation

@CDRussell
Copy link
Member

Asana Issue URL: n\a

Description

Latest kotlin version

@CDRussell CDRussell requested a review from subsymbolic January 25, 2018 12:04
@CDRussell CDRussell merged commit 872359c into develop Jan 26, 2018
@CDRussell CDRussell deleted the feature/kotlin_version_bump branch January 26, 2018 09:36
aitorvs pushed a commit that referenced this pull request Nov 18, 2021
* Allow bulk insertion of debug receiver's trackers

* File formatting

* Ensure repository queried off of the main thread

* Add @transaction annotation to all queries in VPN tracker DAO

As per documentation, potentially large queries should be marked with this to ensure all data is queried in one transaction. Otherwise, when it is being chunked from the db we might end up with data integrity problems from one chunk-read to the next

* Ensure post-queries from DB happen off of the main thread

* Apply hard limit on how many trackers retrieved from database

* Add `.conflate` and `.distinctUntilChanged` to most of our Flow queries

- We want to easy any delays in processing emitted items so we don't block the emitter (room), hence conflate
- We don't need to repeatedly get handed the same list over and over if nothing changed in the list, hence distinctUntilChanged

* Use VPN coroutine scope instead of GlobalScope

* Perform a second query to get total tracker count since we cap retrieved trackers

* Fixing up tests

* Tweak which dispatchers used where

Co-authored-by: Craig Russell <CDRussell@users.noreply.github.com>
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