New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manage Deposits (Screen::Items) creates cache tables but doesn't use them #221
Comments
|
I encountered this issue too. The problem is that a cache table is created every time when "Manage Deposits" is visited, taking a long time to load the page. For a user with 885 deposits it takes about 30 seconds to load the page. Can this be fixed please? |
|
Yes...I also encountered this issue too. I hope this bug can be fixed. |
|
We see this issue, too. Having good system performance for submitters and editors that do daily work in the system is essential. Having to wait 30 seconds is a no-go. That issue should not be tagges as "area:low level". |
|
I've had another look at this. There seems to be an underlying problem with there being multiple ways to achieve similar outcomes -- in this case building a List. The List package itself calls db->cache, but doesn't ever query the database for an existing cached result set. And there is no convenient place to hook it in. Incidentally, why does a List need to be cached before it can be reordered? |
|
I've been doing some thinking around this too. One possible (albeit not perfect) solution would be to add the cacheid to the user preferences field, and recall it from there.
There may need to be a way for a user to 'forget'the cached set via the GUI somehow.
…________________________________
From: Matthew Kerwin <notifications@github.com>
Sent: 25 September 2018 02:23:06
To: eprints/eprints
Cc: Subscribed
Subject: Re: [eprints/eprints] Manage Deposits (Screen::Items) creates cache tables but doesn't use them (#221)
I've had another look at this. There seems to be an underlying problem with there being multiple ways to achieve similar outcomes -- in this case building a List. The List package itself calls db->cache, but doesn't ever query the database for an existing cached result set. And there is no convenient place to hook it in.
Incidentally, why does a List need to be cached before it can be reordered?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#221 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAzq8-M_iCLpi8BDEK47LzbIt_Exy9FEks5ueYV6gaJpZM4BwOxP>.
|
When Manage Deposits searches for the list of all eprints belonging to the current user a cache table is created and populated (in fact two cache tables are created - the second is a copy of the first but sorted into the appropriate display order).
However the cache table is never used eg. when moving through pages, changing the number of items displayed - ie, a new cache table is generated every time an "internal" link is clicked on the Manage Deposits page:
The text was updated successfully, but these errors were encountered: