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

Add the ability to cache the standardizer in the database #18

Open
woodbri opened this issue Feb 25, 2016 · 3 comments
Open

Add the ability to cache the standardizer in the database #18

woodbri opened this issue Feb 25, 2016 · 3 comments

Comments

@woodbri
Copy link
Owner

woodbri commented Feb 25, 2016

Currently the grammar and lexicon have to be loaded for every address. We need to be able to load it once and cache for the lifetime of the query so it is faster to standardize a table of addresses.

@cvvergara
Copy link
Collaborator

what if:
read the whole table of addresses,
then load the grammar and lexicon

@woodbri
Copy link
Owner Author

woodbri commented Feb 25, 2016

That could work for some tables, but it could be a memory problem if you are trying to standardize 80,000,000 records in a table which is about the size of US and Canada.

I did this before for the C code and it works well to cache these in memory.I just need to work out the logistics of doing this for the C++ structures

@cvvergara
Copy link
Collaborator

what if...
you load in chuncks of 100000 rows of table adress
then load grammar & lexicon

then for the 80,000,000 instead of loading 80,000,000 times the grammar & lexicon it would be 800 times

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants