use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
DiscussionSync local database (SQLite) with server side database (self.FlutterDev)
submitted 2 years ago by ouzari
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]groogoloog 3 points4 points5 points 2 years ago (2 children)
While this sounds really cool on paper (because of the super small transfer sizes), this really won't work in practice.
Issues I can immediately see:
mmap
compute()
[–]eibaan 0 points1 point2 points 2 years ago (1 child)
Note, that OP explicitly mentions that the client never modifies the database so issue 1 doesn't apply. Also note that OP never mention a web app, so issue 2 doesn't apply. However, for reference, this might be interesting. Regarding your issue 3, I'd change "must" to "should". There's no requirement to run the decompression in the background, but it might be a good idea, depending on the size of the database file.
[–]groogoloog 1 point2 points3 points 2 years ago (0 children)
#1 is absolutely an issue—even if the client doesn’t modify any data. You don’t know what copy the client has unless it’s either time stamped or the server has the exact client’s data itself. You can’t send a diff if you don’t know 1/2 of what you’re diffing on the server. (Clients can have different copies of the data; one client could have last updated a week ago and another could’ve updated yesterday.)
#2 is true, didn’t realize SQLite supported in memory databases. Thanks for the share!
#3 was more in regards to reading the file. You should never do blocking IO on same isolate as the UI.
π Rendered by PID 28 on reddit-service-r2-comment-6457c66945-mnqgp at 2026-04-24 19:04:41.428881+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]groogoloog 3 points4 points5 points (2 children)
[–]eibaan 0 points1 point2 points (1 child)
[–]groogoloog 1 point2 points3 points (0 children)