-
-
Notifications
You must be signed in to change notification settings - Fork 287
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define the scope of offline data #2461
Comments
@teolemon That would mean extracting those product fields from the server:
That can be implemented in pure SQL with the following tables: create table offline_product(
id int autoincrement primary key,
barcode text unique key not null,
brands text,
name text);
create table offline_attribute(
id int autoincrement primary key,
text_id text unique key not null);
create table offline_product_attribute(
product_id int not null,
attribute_id int not null,
score real not null,
primary key (product_id, attribute_id)); Or something more compact, like a dedicated table with all the attributes as columns. The thing is, that's a good idea to cache tons of products locally, but you'll get very poor performances if you keep json there. What would a typical query be? We would be ignoring these ones:
|
I'm about to start a new project called "fast food":
Creating a project aside sounds like a good idea to me:
|
Note that @AshAman999 is working on this as part of his Google Summer of Code project: https://wiki.openfoodfacts.org/GSOC_2022_-_Offline_Smoothie |
@teolemon @AshAman999 Oops, then I stop. |
Per @AshAman999 's computation in #2447 All 2,4M barcodes
Products (everything including KP, compressed)
Images
107MB for 10k (front image) |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
What
Per @AshAman999 's computation in #2447
All 2,4M barcodes
Products (everything including KP, compressed)
Images
107MB for 10k (front image)
https://squoosh.app/editor
Part of
The text was updated successfully, but these errors were encountered: