Skip to main content Link Search Menu Expand Document (external link)

Remote Storage

Using a shared PostgreSQL database

Handling large shared databases

Synchronization times may get long when working with a large database containing several thousand entries. Therefore, synchronization only happens if several conditions are fulfilled:

  • Edit to another field.
  • Major changes have been made (pasting or deleting more than one character).

Class checks both conditions.

Remaining changes that has not been synchronized yet are saved at closing the database rendering additional closing time. Saving is realized in Following methods account for synchronization modes:

  • pullChanges synchronizes the database unconditionally.
  • pullLastEntryChanges synchronizes only if there are remaining entry changes. It is invoked when closing the shared database (closeSharedDatabase).