Technology

Records and data

Storing, reading, syncing and calculating records

2026.11

In use

Keeping unknown fields when a record is saved

A record the app can read may still contain fields it doesn’t know. We keep those fields when the record is saved.

Reverted

Telling records not yet received from records that don’t exist

While records arrive in parts, one that hasn’t arrived yet can look like one that doesn’t exist. To tell them apart, the app now starts only after it has read all of the account’s records.

In use

Saving watch records without the phone

Until now, saving the watch’s records required the phone. We treat the watch as a separate device on the account, so it can save records without the phone.

In use

36 SQLite queries that didn’t use an index

Although indexes existed, 36 queries were scanning every record. Indexes and queries now come from one declaration.

In use

Version compatibility by skipping unreadable records

Old and new versions of the app can’t understand all of each other’s records. Records a version can’t read are skipped, not changed or deleted, so they don’t stop the whole app.

In use

A sync overwrite found by the model

The server remembered only the number of the last write it had applied. The model found a sequence in which this overwrites a record.

In use

Late delete requests and new files with the same name

We deleted a file and uploaded another under the same name, and the first delete request may only be arriving now. The name alone can't tell us which file it meant to delete.

Partly changed

How we store meal times, order and grouping

We stored the time eaten, the order of foods and the meal each belonged to separately, then matched them up again. We decide which is the source and change how they are stored.

2026.09

In use

Changing the growth score formula

The old score could rise even when the weight went down, and halving the rest doubled the growth. We redefine growth and change the formula.

2026.07

In use

Moving record storage from a JSON file to SQLite

REDDY rewrote its whole JSON file each time it saved one record. A failed save could affect every record, so we are moving to SQLite.

Figures come from the documents, change history and measurements of the time. Each article counts in its own way, so line counts cannot be compared with one another. Security, customer and business details are left out.