adapt-security / adapt-authoring-content

Plugin for handling Adapt content
0 stars 0 forks source link

Content clone needs profiling #12

Open taylortom opened 3 years ago

taylortom commented 3 years ago

This concerns ContentModule#clone

We need to look into speeding up the cloning process (the function needs profiling to identify any issues). Currently the process works as follows:

Need to look into:

In any case, the process will require individual insert calls for each cloned content item (to be able to map from the old _id to the new _id)


taylortom commented 1 week ago

Related to the work you've been doing @chris-steele. Please update this ticket with any relevant comments (and links to other tickets).

We can close this one once we're happy we've got the suitable issues out of the investigation.

chris-steele commented 1 week ago

Some CPU profiling reveals a lot of time spent in the ajv package (schema compilation) during clone ops. #36 would be of benefit here as well as #39