Commit Graph

58 Commits

Author SHA1 Message Date
Michael Kirk
2bed5d0cc3 persist pending read receipts 2020-02-16 13:13:12 -07:00
Matthew Chen
892ce5c135 Rework message processing to handle groups v2. 2020-01-17 17:34:37 -03:00
Matthew Chen
4ce61eb741 Respond to CR. 2020-01-16 18:04:57 -03:00
Matthew Chen
41f314ba1f Respond to CR. 2020-01-16 17:44:56 -03:00
Michael Kirk
11575926b1 remove unused ContactQuery 2020-01-15 14:28:04 -07:00
Matthew Chen
7758bc619b Log GRDB SQL syntax errors in DEBUG builds. 2019-12-04 10:44:20 -03:00
Nora Trapp
87ecf90bee Merge branch 'release/3.0.0' 2019-11-20 16:46:39 -08:00
Michael Kirk
52b38f8769 redundantly clean up gallery items when clearing all content 2019-11-19 11:01:31 -07:00
Nora Trapp
14c8f4175e Add Reaction Model 2019-11-14 13:22:47 -08:00
Matthew Chen
e46eefe50e Remove readReturningResult(). 2019-11-14 10:39:33 -03:00
Nora Trapp
fbdafc6bd5 Store KBS keys in the database instead of the keychain 2019-11-13 10:48:36 -03:00
Matthew Chen
c080ee78f6 Try restart checkpoints. 2019-11-06 21:33:53 -03:00
Matthew Chen
c39844b93e Respond to CR. 2019-10-28 15:24:06 -03:00
Matthew Chen
18a1135058 Clean up before PR. 2019-10-28 15:16:44 -03:00
Matthew Chen
e390d8a5fa Truncate checkpoint on app launch. 2019-10-28 15:16:44 -03:00
Matthew Chen
351ac3ce49 Truncate checkpoint on app launch. 2019-10-28 15:16:43 -03:00
Matthew Chen
b2dd31eb9c Merge remote-tracking branch 'private/release/2.45.0' 2019-10-24 15:42:39 -03:00
Matthew Chen
2d8c183afd Use IMMEDIATE write transactions. 2019-10-24 13:58:53 -03:00
Michael Kirk
a1ebb6cf76 log sql with regular logger, but only in dev-qa 2019-10-21 14:10:44 -06:00
Michael Kirk
de39cdd983 redact data blobs in sql logger 2019-10-21 14:10:44 -06:00
Nora Trapp
fef0a2ffbf Revert "Merge branch 'nt/ipad-split-view'"
This reverts commit 3c9a3f8f21, reversing
changes made to 9a2645497e.
2019-10-21 12:35:02 -07:00
Matthew Chen
cf8e7d862e Respond to CR. 2019-10-17 10:25:13 -03:00
Matthew Chen
9a3cbc573b Refine storage modes. 2019-10-16 16:28:28 -03:00
Michael Kirk
3092bdf540 intern initial schema 2019-10-11 10:47:44 -07:00
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