Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Only add items to the local store #6

Description

@swigle

Hi Andrew,

I'm working on a project. For this project we want to minimise data transfer between app/server.
We're implementing your offlineSyncStore for this reason.

I would like to know if it's possible to alter your code in a way so that if the server only sends new data, these new rows get added to the local store, instead of replacing them.

Now, when trying to accomplish this with the "loadServer" method, the local store items get removed if they're not present in the server call.

As you can imagine, this causes a lot of data transfer that isn't really necessary.

In an older version of the app we sent along the id's of the rows that were already synced, so only new rows were sent by the server. These rows were added to the local store. Sadly this wasn't a sencha project so i can't copy this.

The user can't make any changes on the device, so sync'ing the other way isn't necessary.

Any tips are appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions