Matthew Chen
5c5deae922
Respond to CR.
2019-10-11 09:31:35 -03:00
Matthew Chen
91dab4e9cd
Respond to CR.
2019-10-11 09:31:35 -03:00
Matthew Chen
06e310d391
Rework thread mapping updates.
2019-10-11 09:31:35 -03:00
Matthew Chen
c3ab297ecc
Refine indices.
2019-10-09 16:09:34 -03:00
Matthew Chen
48887fca46
Fix "unread" and "unseen" queries in GRDB.
2019-10-09 16:09:34 -03:00
Nora Trapp
90c562e94b
Render conversation list + view in a side-by-side split on iPad
2019-10-08 20:10:01 -07:00
Matthew Chen
dfda4641f9
Fix GRDB index.
2019-10-08 13:12:14 -03:00
Michael Kirk
c176c78ead
remove unused index
2019-10-04 14:29:32 -04:00
Michael Kirk
fcbbd050c8
fix index order
2019-10-04 14:29:32 -04:00
Matthew Chen
d41188de1a
Add missing indices.
2019-10-04 14:29:32 -04:00
Matthew Chen
2ff2d7dd23
Log database file sizes after YDB-to-GRDB migration.
2019-10-04 15:12:45 -03:00
Matthew Chen
42dda21c37
Respond to CR.
2019-09-24 09:53:25 -03:00
Matthew Chen
e0b4d76394
Rework db key checks.
2019-09-24 09:38:41 -03:00
Matthew Chen
da6ade366f
Protect databases from orphan clean up.
2019-09-23 12:24:13 -03:00
Matthew Chen
8e4cd299be
Merge tag '2.43.0.17'
2019-09-23 12:19:18 -03:00
Matthew Chen
f3d252e5d5
Improve logging around missing or corrupt images.
2019-09-20 21:17:20 -03:00
Matthew Chen
04b2863311
Add TestModel.
2019-09-18 09:04:19 -03:00
Matthew Chen
4944d3b96c
YDB-to-GRDB migration stress testing.
2019-09-16 13:34:55 -03:00
Michael Kirk
53b2fc1929
touches take effect even in a no-op deferred transaction.
...
UIDatabaseObserver orchestrates notifying views when a transaction commits.
We back UIDatabaseObserver with a DatabaseRegionObserver
DatabaseRegionObservers are not notified if the transaction contains no changes:
https://github.com/groue/GRDB.swift/blob/af0ac15/GRDB/Core/DatabaseRegionObservation.swift#L119
However the more general TransactionObservers *are* notified even if the
transaction contains no changes. Nicely, GRDB does some work to ensure this is
true even in the event of a deferred transaction. See this comment on `databaseDidCommitEmptyDeferredTransaction`
da459386a0/GRDB/Core/TransactionObserver.swift (L444)
2019-09-04 21:47:57 -06:00
Michael Kirk
5c94ef6370
Add uniqueId indices for all records
2019-09-04 18:24:44 -06:00
Michael Kirk
f0bb99b73f
get back on mainline GRDB
2019-09-04 18:23:01 -06:00
Michael Kirk
6eb1595e87
update GRDB
2019-09-04 18:23:01 -06:00
Michael Kirk
3ce857f92b
missing indices for faster message sending
2019-09-04 18:21:40 -06:00
Michael Kirk
0cbc07719d
durable job queue indices
2019-08-30 13:30:02 -06:00
Michael Kirk
9f81f40583
better index paging - in a gallery well be enumerating attachments for the same thread
2019-08-30 13:30:02 -06:00
Michael Kirk
b77034a6e5
It doesn't make sense to have unique column as first column in a composite
...
index, since the second item will have at most 1 entry.
It might make sense to just index timestamp, but we already have a composite
index which does this.
2019-08-30 13:30:02 -06:00
Michael Kirk
e866dc9a24
add missing uniqueid indices
2019-08-30 13:30:02 -06:00
Michael Kirk
4561c61c4d
take advantage of index ordering for interactions
...
It doesn't make sense to "filter by interactionId" then order by "threadId"
since there will never be more than one threadId per interactionId
2019-08-30 13:30:02 -06:00
Matthew Chen
a349c5a9ee
Don't load YDB unless necessary.
2019-08-26 13:18:31 -03:00
Matthew Chen
5f80512a9e
Remove YDB usage.
2019-08-26 12:29:17 -03:00
Matthew Chen
62e4f538b0
Fix rebase breakage.
2019-08-23 15:44:20 -03:00
Matthew Chen
10eae58896
Use separate keyspec for GRDB.
2019-08-23 15:34:53 -03:00
Matthew Chen
dd770f9f2d
Use separate keyspec for GRDB.
2019-08-23 15:34:53 -03:00
Matthew Chen
dee5a0727f
Decompose SDSDatabaseStorage.
2019-08-23 15:32:47 -03:00