UUDigitalHumanitieslab / EDPOP

A virtual research environment (VRE) that lets you collect, align and annotate bibliographical and biographical records from several online catalogs.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Only add records to triplestore after returning catalogue request #217

Open tijmenbaarda opened 2 months ago

tijmenbaarda commented 2 months ago

When searching in a catalogue, the backend stores all records it found in the triplestore so that they can be reused when a collection is accessed. However, this may take up to a couple of seconds and there is no reason to wait until the request has been answered.

Django does not have built-in support to execute code after the response has been returned, so this would have to be done using Celery, threads or otherwise.

In theory, it is possible that a user adds records to a collection and then requests them before the records are completely added to the triplestore. However, in practice that is almost impossible.