-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Citation key generation on large number of entries not showing up in Background Tasks #7267
Comments
Question for whenever someone gets to it. If I am understanding correctly the intention would be just to use the backgroundtask wrapper and have the task/progress show up in the task window. Does the wrapper also protect task from the being interrupted, It doesn't appear to work this way. The reason I ask is related to the question below. Would it be better to block until complete? I don't know typical working numbers but 100000 entries seems like it would be a rarity, so maybe my understanding of the issues at hand are a bit skewed. But, maybe there is a better solution that addresses the potential for interruption. I would like to add, someone probably wouldn't be requesting task progress-monitoring for something with a very quick resolution. I would be interested to hear what someone else thought. |
Hi, |
@btut It's been awhile since I've checked the issue out but what I'm remembering was starting the process and continuing to work (which I think was just clicking on entries to examine). This would stop the gen process and without notification. If more clarification would be helpful let me know and I can revisit to refresh my memory. IMO: |
|
I think at very least a dialog asking if they want to stop the process. I don't know all conditions that could interrupt and it may make more sense to just block with a dialog? Again, as you found out its pretty quick if you aren't doing very many... but then the question became if its so quick the blocking dialog will not be seen, why bother having it display the progress. There are some script files you can use to build a lib with, look in the scripts/ directory. I think the undo would have been requested if users wanted to take advantage of something like that. To me, the undoing sounds like issue creep and should be its own separate issue. |
Yup. The implementation slows down significantly based on the number of entries in the library and the amount of duplicates of the particular key. Is this a problem that needs fixing? |
|
@btut it checks all keys on each entry and each collision. I think Additionally, it seems that we are assuming that any entry can be changed at any time during the key generation, which is why it is iterating through all bibentries. Creating a high-performing alternative while avoiding concurrency issues is probably not worth your time, even if we are not doing XP. |
|
JabRef 5.2--2020-12-24--6a2a512
Windows 10 10.0 amd64
Java 14.0.2
This issue is present on the v5.2 stable.
Steps to reproduce the behavior:
Would be great if such extensive tasks would show up in the Background task option.
The text was updated successfully, but these errors were encountered: