Hi Jayan
Here's a suggestion, it's a bit daggy but should work. I had a kind of
similar problem a few weeks back when I had to delete several hundred
items from part of a collection.
What I did was write a quick script which created a "dummy" import.map
file for use with the ItemImporter class. Basically, if you have large
chunks of items that have consecutively numbered handles, you create a
map file with arbitrary (but unique) filenames and use the ItemImporter
with the -d flag (for delete). When using the ItemImporter for deleting
items (a strange concept in nomenclature, I know...), all the class
requires is a unique filename plus the handle - the filename can be
anything as it is not actually used for any sort of lookup - the script
just deletes all bistreams with a particular handle. For example, you
could create a "delete.map" file like:
Filename1.xml 123456789/1
Filename2.xml 123456789/2
Filename3.xml 123456789/3
.
.
.
So this way you could try deleting, say, 1000 items at a time from the
collection, and then delete the collection. This all assumes that you
have large chunks of consecutively numbered items - be careful, as you
might unwittingly delete items in other collections if not.
Is that clear? My baby wanted to play at 3am, so forgive me if I'm
babbling.
Kind regards
Gary
Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jayan
Chirayath Kurian
Sent: Monday, 3 September 2007 2:05 PM
To: [email protected]
Subject: [Dspace-tech] Deleting a Collection
Hi!
Using admin interface a collection with around 20,000 items were tasked
to delete. After few minutes the system hangs (IMB RAM, 100 GB free disk
space) and the web page is no longer accessible. Is there any way to
delete this collection on the test system?
Here we have dspace 1.4.1 on windows 2003/tomcat 6.0. I have given 500
MB in tomcat configure option - Java - Internal memory pool/ macimum
memory pool/ thread stack size.
Thanks,
Jayan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech