Signal-iOS/SignalMessaging/environment
George Nachman 22c1cb8a22 Fetch phone numbers in a batch.
This is the first meaty part of optimizing
fetching display names.

Some contacts fall back to phone numbers as their
display names. This PR fetches them in a single
SQL query via
`OWSContactsManager.phoneNumbers(for:, transaction)`.

To achieve this, this PR introduces
`GRDBSignalAccountFinder.signalAccounts(for:,transaction:)`
to fetch many accounts at once.

In order to fetch many accounts at once, we need
to be able to fetch many values from a
ModelReadCache at once. So this PR introduces
`ModelReadCache.readValues(for:,transaction:)` and
`ModelReadCache.getValues(for:,transaction:,returnNilOnCacheMiss:)`.

Existing methods that operate on a single value
were refactored to use the batch methods.

This PR adds tests for this functionality, which
necessitated changing the visibility of various
private symbols and also improving the fake
profile manager to make it more configurable.

There's also a tiny optimization for Refinery to
avoid calling a closure that has no work to do.
This helps elide do-nothing SQL queries that would
otherwise have been introduced.
2022-03-17 12:46:33 -07:00
..
AppSetup.h Additional avatar logging 2022-02-25 17:28:08 -08:00
AppSetup.m Fetch phone numbers in a batch. 2022-03-17 12:46:33 -07:00
Environment.h Lint 2022-03-04 14:16:29 -08:00
Environment.m Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
LaunchJobs.swift Lint 2022-01-31 11:00:13 -08:00
MessageRequestPendingReceipts.swift Record uniqueIds of messages that receipt messages refer to 2021-07-29 20:40:40 -07:00
NoopCallMessageHandler.swift Lint 2022-03-04 14:16:29 -08:00
OWSSounds.h Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
OWSSounds.m replaced NSLocalizedStringFromAppBundle with OWSLocalizedString 2022-03-08 10:17:25 +01:00
VersionMigrations.h Don't mark app as ready until all version migrations are done. 2018-01-30 11:27:44 -05:00
VersionMigrations.m Revise app versioning scheme. 2021-08-23 18:23:50 -03:00