Previously each time one called get_schema() on a datasource_driver we would
generate it by walking through all of the translators. This patch changes the
logic so that we store the schema when we register a datasource so we do not
have to generate it each time. Note: the schema never changes durring run time
so we're able to cache it like this.
Reviewed: https:/ /review. openstack. org/150582 /git.openstack. org/cgit/ stackforge/ congress/ commit/ ?id=9cf02c7bde5 ef4926bda10631c 40cf978992d020
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9cf02c7bde5ef49 26bda10631c40cf 978992d020
Author: Aaron Rosen <email address hidden>
Date: Tue Jan 27 12:48:41 2015 -0800
Cache schema generation
Previously each time one called get_schema() on a datasource_driver we would
generate it by walking through all of the translators. This patch changes the
logic so that we store the schema when we register a datasource so we do not
have to generate it each time. Note: the schema never changes durring run time
so we're able to cache it like this.
Change-Id: I4deead9fa698e6 81c0f0a8f07a4ef 7d95726bae7
Closes-bug: #1415208