diff --git a/content/2016-04.md b/content/2016-04.md index 66fda625e..aeeca5083 100644 --- a/content/2016-04.md +++ b/content/2016-04.md @@ -57,3 +57,15 @@ java.io.FileNotFoundException: /home/cgspace.cgiar.org/assetstore/64/29/06/64290 ``` - Also, adjust the cron jobs for backups so they only backup `dspace.log` and some stats files (.dat) +- Try to do some metadata field migrations using the Atmire batch UI (`dc.Species` → `cg.species`) but it took several hours and even missed a few records + +## 2016-04-06 + +- A better way to move metadata on this scale is via SQL, for example `dc.type.output` → `dc.type` (their IDs in the metadatafieldregistry are 66 and 109, respectively): + +``` +dspacetest=# update metadatavalue set metadata_field_id=109 where metadata_field_id=66; +UPDATE 40852 +``` + +- After that an `index-discovery -bf` is required diff --git a/public/2016-04/index.html b/public/2016-04/index.html index 4102c4a9f..53eb7beb1 100644 --- a/public/2016-04/index.html +++ b/public/2016-04/index.html @@ -135,6 +135,21 @@ java.io.FileNotFoundException: /home/cgspace.cgiar.org/assetstore/64/29/06/64290 + +

2016-04-06

+ + + +
dspacetest=# update metadatavalue set metadata_field_id=109 where metadata_field_id=66;
+UPDATE 40852
+
+ + diff --git a/public/index.xml b/public/index.xml index 99ca4df9a..37e88db97 100644 --- a/public/index.xml +++ b/public/index.xml @@ -73,6 +73,21 @@ java.io.FileNotFoundException: /home/cgspace.cgiar.org/assetstore/64/29/06/64290 <ul> <li>Also, adjust the cron jobs for backups so they only backup <code>dspace.log</code> and some stats files (.dat)</li> +<li>Try to do some metadata field migrations using the Atmire batch UI (<code>dc.Species</code> → <code>cg.species</code>) but it took several hours and even missed a few records</li> +</ul> + +<h2 id="2016-04-06:c88be15f5b2f07c85f7742556a955e47">2016-04-06</h2> + +<ul> +<li>A better way to move metadata on this scale is via SQL, for example <code>dc.type.output</code> → <code>dc.type</code> (their IDs in the metadatafieldregistry are 66 and 109, respectively):</li> +</ul> + +<pre><code>dspacetest=# update metadatavalue set metadata_field_id=109 where metadata_field_id=66; +UPDATE 40852 +</code></pre> + +<ul> +<li>After that an <code>index-discovery -bf</code> is required</li> </ul> diff --git a/public/tags/notes/index.xml b/public/tags/notes/index.xml index b3f9cfca8..fe2cc0275 100644 --- a/public/tags/notes/index.xml +++ b/public/tags/notes/index.xml @@ -73,6 +73,21 @@ java.io.FileNotFoundException: /home/cgspace.cgiar.org/assetstore/64/29/06/64290 <ul> <li>Also, adjust the cron jobs for backups so they only backup <code>dspace.log</code> and some stats files (.dat)</li> +<li>Try to do some metadata field migrations using the Atmire batch UI (<code>dc.Species</code> → <code>cg.species</code>) but it took several hours and even missed a few records</li> +</ul> + +<h2 id="2016-04-06:c88be15f5b2f07c85f7742556a955e47">2016-04-06</h2> + +<ul> +<li>A better way to move metadata on this scale is via SQL, for example <code>dc.type.output</code> → <code>dc.type</code> (their IDs in the metadatafieldregistry are 66 and 109, respectively):</li> +</ul> + +<pre><code>dspacetest=# update metadatavalue set metadata_field_id=109 where metadata_field_id=66; +UPDATE 40852 +</code></pre> + +<ul> +<li>After that an <code>index-discovery -bf</code> is required</li> </ul>