Option to generate community and collection "strength" as a batch job

git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2328 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Richard Jones
2007-11-12 11:59:47 +00:00
parent 8a7e41a5fe
commit 8d7b59f45d
17 changed files with 1315 additions and 12 deletions

View File

@@ -736,6 +736,19 @@ FROM ItemsBySubject, Communities2Item
WHERE ItemsBySubject.item_id = Communities2Item.item_id
;
-------------------------------------------------------------------------
-- Tables to manage cache of item counts for communities and collections
-------------------------------------------------------------------------
CREATE TABLE collection_item_count (
collection_id INTEGER REFERENCES collection(collection_id),
number INTEGER
);
CREATE TABLE community_item_count (
community_id INTEGER REFERENCES community(community_id),
number INTEGER
);
-------------------------------------------------------
-- Create 'special' groups, for anonymous access

View File

@@ -61,3 +61,17 @@ alter table bundle drop column mets_bitstream_id; -- totally unused column
-- of the last page reached within a step in the Configurable Submission Process
-------------------------------------------------------------------------------
ALTER TABLE workspaceitem ADD page_reached INTEGER;
-------------------------------------------------------------------------
-- Tables to manage cache of item counts for communities and collections
-------------------------------------------------------------------------
CREATE TABLE collection_item_count (
collection_id INTEGER REFERENCES collection(collection_id),
number INTEGER
);
CREATE TABLE community_item_count (
community_id INTEGER REFERENCES community(community_id),
number INTEGER
);