Opened 17 years ago
#265 new task
Import latest GRIN data into latest GRIN-Global schema
| Reported by: | bweaver | Owned by: | bweaver |
|---|---|---|---|
| Priority: | critical | Milestone: | Unassigned |
| Component: | Database, Custom Reports | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
To stress test the search engine and middle tier, I asked Quinn to give me a snapshot of existing GRIN data. He provided me that on 2010-01-13 and the three files it consists of are currently sitting on dev4 at C:\projects\GrinGlobal_non-svn\GRIN_full_dump_2010_01_13.
This data needs to be imported into the latest functional GG schema. The audit data should not be lost in the process as it was with the initial one (thanks to my relatively crappy migration script on that version).
Quinn's data dump is (obviously) from Oracle, so DatabaseCopier will need to be tweaked to handle reading schema from Oracle and kicking out raw data files. I don't see us doing this extremely often, but there isn't much work needed to get DatabaseCopier to be able to handle this.
I think the script should be a SQL Server specific one because it will be easiest to maintain on one database engine. MySQL is extremely slow for this kind of task, as we need to manipulate the data as it is translated from the old schema to the new one (meaning we can't use bulk load functionality).
Once the data is in SQL Server and in the new schema, we can use the DatabaseCopier exe to pull it and the schema into an agnostic format and easily plow it into the other database engines.
Note this does contain sensitive data and has not been scrubbed. It should not be in any release, nor should it be made publicly available in in form.
However, we should write a second set of SQL Server scripts that can pare down the full database and obfuscate any sensitive data that is required (such as cooperator records that must exist, but should contain bogus data to protect the innocent). This script should be able to take parameters / be easily tweaked to limit accessions to a certain range -- say we want one that has accessions from PI 550000 - PI 555000 and a different one with accessions PI 560000 - PI 570000. The script should be able to handle this easily (it can assume accession_number is within a given range, and accession_prefix is a given value).
This will let us be able to give data to people however they want to test it -- curators will want lots of data, gui testers may want only a few thousand rows. While we may never do that (to keep everybody testing the same set of data internally), it should be something that is easy to do so when international folks or testers outside our internal group want a specific set of data, we can give it to them.

Mapping of GRIN Classic schema to GRIN-Global schema