65 Commits

Author SHA1 Message Date
ashilkn
eb68a6c293 [mob] Migrate from sqflite 2024-04-18 16:23:43 +05:30
laurenspriem
e7992674d5 [mob] Use async sqlite for getting file creation times 2024-04-18 16:17:04 +05:30
ashilkn
e87ae499eb [mob] pref: use sqlite_async for getFilesCreatedWithinDurations 2024-04-18 10:59:22 +05:30
Neeraj Gupta
b18734f63e Merge branch 'main' into mobile_face 2024-04-11 11:10:54 +05:30
ashilkn
d07c4f4d1d Remove code used for debugging/testing 2024-04-10 12:29:01 +05:30
ashilkn
b9b623e3f7 fix: query in getAllLocalAndUploadedFiles doesn't work if limit is null 2024-04-10 11:11:39 +05:30
Neeraj Gupta
c224e38ddf Merge branch 'main' into mobile_face 2024-04-10 10:15:40 +05:30
ashilkn
83d122341f Migrate getAllLocalAndUploadedFiles from sqflite to sqlite_async 2024-04-09 17:48:53 +05:30
ashilkn
785beeb9b3 Migrate getFilesInCollection from sqflite to sqlite_async 2024-04-09 17:40:22 +05:30
ashilkn
1ec941b022 Migrate getAllPendingOrUploadedFiles from sqflite to sqlite_async 2024-04-09 16:12:37 +05:30
Ashil
628d13ea53
[mobile][photos] Use sqlite async for fetching all files for search (#1391)
## Description

Using [sqlite_async](https://pub.dev/packages/sqlite_async) has
increased query speed by about 5x and has removed GC logs like:
`Background concurrent copying GC freed 424845(20MB) AllocSpace objects,
183(4932KB) LOS objects, 37% free, 39MB/63MB, paused 144us,44us total
128.048ms`, which has improved performance of the app.

Tried using [sqlite3](https://pub.dev/packages/sqlite3), which reduced
query speed by 10x and removed the GC log, but introduced some jank
since it blocks the UI.

Converting the fetched rows to `EnteFile` now runs on an isolate to
avoid blocking the UI.

## Tests

Did manual testing to see difference in jank.
2024-04-09 15:17:48 +05:30
Neeraj Gupta
fb3a77bf94 Merge branch 'main' of https://github.com/ente-io/auth into mobile_face 2024-04-03 13:57:39 +05:30
Ashil
f8febe12df
[mobile][photos] Reupload files with missing GPS data (#1263)
## Description

- Fixes corrupt files (missing GPS data) that were uploaded due to [this
issue](https://github.com/ente-io/ente/pull/1261)
- Refactor

## Tests

Tested and working
- Uploaded two file from a build that has missing permission for
`ACCESS_MEDIA_LOCATION` and GPS data is missing.
- Created a new build with changes in this PR.
- Deleted the file from device. 
- Remote file has GPS data when checked from file info.

---------

Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2024-04-01 16:41:33 +05:30
laurenspriem
a2bca84b91 [mob] Sort clustering on fileCreationTime asc 2024-03-21 15:41:34 +05:30
Manav Rathi
41b2581b8f Move into mobile/ 2024-03-01 12:25:37 +05:30