-
Notifications
You must be signed in to change notification settings - Fork 1
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
API read/write perf is poor for Artworks #6
Comments
@markfinger @cogat the poor performance for Artworks, or any work in collections, is caused by the new EDTF field which uses naive and slow parsing of text values when reading EDTF date values back from the DB into model instances. Fixing this will require either rethinking and updating the |
As noted in ixc/python-edtf/issues/14 it can take a quarter-second or longer to load each non-empty EDTF date field from the DB into a model instance, whether or not that field is subsequently referred to. This explains why it is slow not just to list items, but even to delete a set of populated model instances with |
This should be substantially resolved by changes for ixc/python-edtf#11 |
This should be resolved enough for now by changes upstream in ixc/python-edtf#11 etc |
Read timing
The results are paginated, so there's no extra overhead from json handling a massive payload. Given the extra pages for the artwork records, there may be a negligible overhead associated with the network requests.
Write perf seems to be about the same as reads.
The text was updated successfully, but these errors were encountered: