issues
search
anthonygarvan
/
marktwo
A seamless, speedy, syncing markdown editor
https://marktwo.app
GNU General Public License v3.0
78
stars
10
forks
source link
Sync design
#2
Closed
anthonygarvan
closed
5 years ago
anthonygarvan
commented
5 years ago
data stored as rows with entries of {id: 'zfregln', text: 'This is
bold
', createdOn: 'isostring', 'lastModified': 'isostring'}
rows are chunked by 200 - 300 lines, sent to json-stringify-deterministic, hashed
query google drive to get file metadata
if the app has most current metadata (no contention), save new file metadata with list of ids
list files in file contents folder
add additional file data
remove any files that no longer have references
to load file:
get file metadata
check cache to see if md5 hash is in localstorage, use it if so
if not query to get the file data block
assemble all blocks into file object
create index
to load file: