-
Notifications
You must be signed in to change notification settings - Fork 342
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
Consider use of UUIDs to allow importing multiple independent sets of HSDS CSV files #341
Comments
The import script uses the ID in the CSV file to set the ID in the Rails DB, so the ID in the CSV file acts as a unique identifier. |
Would the And how does current import process handle entries with the same ID as one in the database? Presumably it cannot be a UUID because it has to be an integer/key column. |
Why is a Is there a specific issue with the import process you are running into? If so, please state the bug and the steps to reproduce. |
It comes back to importing records from other systems. Its not possible to
define IDs just as simple database primary keys that guarantee uniqueness.
What if I have an Ohana db with 100 orgs, and then try to import another
org for a different system that has an ID that collides with one in Ohana?
|
Thanks! That's more helpful. Starting with the actual issue is always a good idea 😄 I hadn't thought about this scenario, and in this case, yes, a |
Having a |
I supposed it's possible to do so now since the |
Could this potentially allow importing (and potentially resetting/dropping) from each separate source db as independent tasks? I'm currently attempting to import our whole state db and am having issues completing an import. Breaking this into smaller tasks might help with larger data sets as well. |
This particular issue only deals with adding a new field to the DB. If you're having problems importing a large data set, please open a new issue. Thanks! |
How are the ID columns used when importing CSVs? Are they just for cross referencing within the CSV content? Presumably on import Rails allocates IDs to the entries?
Has the use of a UUID field been considered for replication of content, so an item (org or location) could be uniquely identified? I notice OR has a "Resource ID" field, might that be a future feature on Ohana?
The text was updated successfully, but these errors were encountered: