Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Store the taxon_str on the accession record #6

Open
brettatoms opened this issue Aug 18, 2013 · 0 comments
Open

Store the taxon_str on the accession record #6

brettatoms opened this issue Aug 18, 2013 · 0 comments
Assignees
Milestone

Comments

@brettatoms
Copy link
Member

It would be way faster to store this on the record rather than query it every time the accession record is looked up. We could hook into an SQLAlchemy after_save event on the Taxon to update the taxon_str on its children accession when it is saved.

If we have taxon_str cached on the accession then we could return it in json() with depth=1

@ghost ghost assigned brettatoms Aug 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant