Skip to content
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

refactor(sync): log extra info #288

Closed
wants to merge 1 commit into from
Closed

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented May 6, 2024

What

Add some logging during the sync task, to better understand how many products are available in the dumps

@raphodn raphodn force-pushed the raphodn/sync-additional-logs branch from 89b8d47 to c6cf0c7 Compare May 21, 2024 13:44
dataset = ProductDataset(
flavor=flavor,
dataset_type=DatasetType.jsonl,
force_download=True,
download_newer=True,
)
logger.info(f"Dataset size: {dataset.count()}")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .count() command seems to take a looong time for the OFF dataset 🤔

@raphodn
Copy link
Member Author

raphodn commented Oct 6, 2024

Not needed anymore following #366

@raphodn raphodn closed this Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fetch non-food product data from Open Product Facts & Open Beauty Facts
1 participant