mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 12:33:18 +00:00
[DS-734] Improve efficiency of Database accesses
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5706 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -261,10 +261,10 @@ public class MetadataSchema
|
||||
|
||||
|
||||
// Create a table row and update it with the values
|
||||
row = DatabaseManager.create(context, "MetadataSchemaRegistry");
|
||||
row = DatabaseManager.row("MetadataSchemaRegistry");
|
||||
row.setColumn("namespace", namespace);
|
||||
row.setColumn("short_id", name);
|
||||
DatabaseManager.update(context, row);
|
||||
DatabaseManager.insert(context, row);
|
||||
|
||||
// invalidate our fast-find cache.
|
||||
decache();
|
||||
|
Reference in New Issue
Block a user