Closed Bug 1156189 Opened 9 years ago Closed 8 years ago

Integrate the contact revision in the main call log database and remove the async_storage uses

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gsvelto, Unassigned)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1107781 +++

The call log currently uses two separate databases: the main call log database handled directly via IndexedDB and an async_storage-based database used only for storing the version of the contact database. This wastes resources for no good reason (we store two full DBs, need two DB connections with associated memory usage, etc...) and makes upgrading the call log DB fragile as we write updates to two different databases w/o synchronization between them and hope that things just work.

We should remove the async_storage uses & its associated database and merge the little data we store there into the main call log database. We should also fold the async_storage operations into the existing IndexedDB transactions thus making the updates fully atomic.
WIP PR attached.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: