Debating Between Personal Caching Mechanism and This Package for Handling City Data - Advice Needed #68
Unanswered
andrewdwallo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
I'm working with a large dataset containing city information (about 130,000 rows from a CSV file). The data is primarily read-only and rarely changes. I'm debating between two approaches for managing this data efficiently: Laravel's built-in caching mechanism and using this package to load all the data into an SQLite in-memory database. Your insights would be invaluable to me.
Current Implementation: Laravel Cache
Here's a snippet of my current implementation using Laravel's Cache:
How it Works:
Pros:
country_code
andstate_id
, making it quick for frequent queries.Cons:
Alternative Approach: This package
As an alternative, I'm considering using this package, which would load all city data into an in-memory SQLite database.
How it Works:
Pros:
Cons:
Beta Was this translation helpful? Give feedback.
All reactions