Project

General

Profile

Actions

Bug #1518

closed

New source takes extremly long

Added by Stefan Eichert over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Backend
Target version:
Start date:
2021-05-20
Estimated time:
Found in version:

Description

Adding a new source in the thanados instance takes extremly long. (2min +). Tested on V.6.3.0. Testing the same locally, (v.6.2.0) works as supposed with the same database dump.
Tested on Chrome on various machines with fast internet.

Actions #1

Updated by Alexander Watzinger over 3 years ago

  • Project changed from 50 to OpenAtlas
  • Category set to Backend
  • Status changed from New to In Progress
  • Assignee set to Alexander Watzinger
  • Target version set to 6.3.0
  • Found in version set to 6.3.0

Can confirm, moved the issue to the OpenAtlas project and will look into it. Thank you for reporting.

Actions #2

Updated by Alexander Watzinger over 3 years ago

  • Status changed from In Progress to Closed

This was a rather strange one.
First I couldn't reproduce it locally, one difference to the online version was that I hadn't that many files in the upload directory. So I imported files from an old backup and with that I was able to reproduce the long loading times. Being able to reproduce it I found the culprit: using a render_template function for check boxes in multi select tables in forms. Doing this without templates made it much faster. The strange thing is that this should be completely unrelated to the amount of files in the upload directory, it also makes no differences after removing the template call anymore.

However, it still takes a few seconds but is much faster than before. The fix is in the develop branch which I already uploaded to THANADOS.
I hope entering of data goes smoother now and thanks again for reporting.

Actions #3

Updated by Stefan Eichert over 3 years ago

Thx for the quick fix!

Actions

Also available in: Atom PDF