the orgunit record for the institution does not accept being linked to more than 1,000 Publication items

88 views
Skip to first unread message

محمود محمد

unread,
Mar 25, 2025, 7:32:02 AM3/25/25
to DSpace Community

I have bibliographic record files totaling 10,000 records, corresponding to 10,000 items in an Excel file, which I have successfully migrated into DSpace. Additionally, I have created authority records for 20 institutions within the "orgunit" entity group and linked them to the items as publishers. However, when the number of items linked to a single institution exceeds 1,000, a relation issue arises: the orgunit record for the institution does not accept being linked to more than 1,000 Publication items. What is causing this issue, and how can I resolve it?


is that regarding   rest api or what ?    thanks,,,

pierre...@bibl.ulaval.ca

unread,
Mar 31, 2025, 9:28:59 AM3/31/25
to DSpace Community
Hi, 

There is a festure called the "tilted relationship" https://github.com/DSpace/DSpace/pull/3134 that should solve your problem. It was introduced in early versions of DSpace 7 but it has not been documented yet.

Thanks,
Kind regards, 
Pierre Lasou
Université Laval

محمود محمد

unread,
Apr 1, 2025, 7:29:25 AM4/1/25
to pierre...@bibl.ulaval.ca, DSpace Community

Mr. Pierre Lasou, Thank you for your interest, Ok, I will try, Thank you for your support


--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-community/acbbbb63-d5b8-42f9-b354-d0d1b21b1d68n%40googlegroups.com.

محمود محمد

unread,
Apr 3, 2025, 11:39:56 AM4/3/25
to pierre...@bibl.ulaval.ca, DSpace Community
Thank you, Mr. Pierre Lasso. I found the solution you provided helpful. Thank you for your feedback. The solution helped me quickly retrieve and display relationships linked to large individuals and institutions. However, when it comes to uploading relationships from external records using the patch upload method, the process is still very slow and gets slower with each operation. This means:

I upload 1,000 records for a book and link them to an authority record in an org units file. In the first batch, the system loads all the records and their metadata together, then adds the relationships at an acceptable speed. However, when I upload the second batch of records, 1,000 records for a book, and link them to the same org units, the problem arises. The system begins to slow down when adding relationships. Instead of five seconds, it takes 10 seconds, then 20 seconds, then 30 seconds, and so on with each addition of a relationship. The code is located in the following files:
image.png



First batch The relationships were loaded easily and without problems, but when adding the next batches, the problem appears, which is that the number of seconds increases very significantly with the addition of each relationship.


image.png


image.png


The diagnosis is that the code updates all relationships in all records that contain the same relationship until it adds a new relationship, and so on with each new addition of a new relationship.

I have sent you files and illustrative images of the nature of the problem and the code.



‫في الثلاثاء، 1 أبريل 2025 في 11:59 ص تمت كتابة ما يلي بواسطة محمود محمد <‪mahmoud...@gmail.com‬‏>:‬

محمود محمد

unread,
Apr 5, 2025, 1:29:11 AM4/5/25
to DSpace Community, DSpace Technical Support, dspace-tech...@googlegroups.com

---------- Forwarded message ---------
من: محمود محمد <mahmoud...@gmail.com>
‪Date: الخميس، ٣ أبريل ٢٠٢٥، ٧:٣٨ م‬
Subject: Re: [dspace-community] Re: the orgunit record for the institution does not accept being linked to more than 1,000 Publication items
To: pierre...@bibl.ulaval.ca <pierre...@bibl.ulaval.ca>
Cc: DSpace Community <dspace-c...@googlegroups.com>


Thank you, Mr. Pierre Lasou. I found the solution you provided helpful. Thank you for your feedback. The solution helped me quickly retrieve and display relationships linked to large individuals and institutions. However, when it comes to uploading relationships from external records using the patch upload method, the process is still very slow and gets slower with each operation. This means:

I upload 1,000 records for a book and link them to an authority record in an org units file. In the first batch, the system loads all the records and their metadata together, then adds the relationships at an acceptable speed. However, when I upload the second batch of records, 1,000 records for a book, and link them to the same org units, the problem arises. The system begins to slow down when adding relationships. Instead of five seconds, it takes 10 seconds, then 20 seconds, then 30 seconds, and so on with each addition of a relationship. The code is located in the following files:
image.png



First batch The relationships were loaded easily and without problems, but when adding the next batches, the problem appears, which is that the number of seconds increases very significantly with the addition of each relationship.


image.png


image.png


The diagnosis is that the code updates all relationships in all records that contain the same relationship until it adds a new relationship, and so on with each new addition of a new relationship.

I have sent you files and illustrative images of the nature of the problem and the code.

‫في الخميس، 3 أبريل 2025 في 7:37 م تمت كتابة ما يلي بواسطة محمود محمد <‪mahmoud...@gmail.com‬‏>:‬
Reply all
Reply to author
Forward
0 new messages