config: do not read backref/children fields from cassandra if not needed
from the bug descr:
in cassandra_<type>_read() implementation of autogen code, all the columns
of an object are read from DB and filtered by field_names by iteration.
In scale situations this is non-performant as project, ipam, sg etc. have
many backrefs and most common case is to not need backref/children of these objects.
So fix autogen code to check required fields against the set of backref + children
and read-in with column_start if not only props/ref are needed.
Change-Id: Ie96744e829f67409c6cb76deecb4e7117ac61d5d
Closes-Bug: #1421752
(cherry picked from commit acc3904c3c0b56e9871d885c24ad5404814e4e8a)
(cherry picked from commit d1c215fd9cab5a74edd698f41ce1bc361bc2eb7a)
Reviewed: https:/ /review. opencontrail. org/7799 github. org/Juniper/ contrail- generateDS/ commit/ 13ab69f5fc17de3 40cddbcaa8f3ac1 734cdd2b82
Committed: http://
Submitter: Zuul
Branch: R1.10
commit 13ab69f5fc17de3 40cddbcaa8f3ac1 734cdd2b82
Author: Hampapur Ajay <email address hidden>
Date: Fri Feb 13 10:10:33 2015 -0800
config: do not read backref/children fields from cassandra if not needed
from the bug descr: <type>_ read() implementation of autogen code, all the columns
in cassandra_
of an object are read from DB and filtered by field_names by iteration.
In scale situations this is non-performant as project, ipam, sg etc. have
many backrefs and most common case is to not need backref/children of these objects.
So fix autogen code to check required fields against the set of backref + children
and read-in with column_start if not only props/ref are needed.
Change-Id: Ie96744e829f674 09c6cb76deecb4e 7117ac61d5d 9871d885c24ad54 04814e4e8a) 4edd698f41ce1bc 361bc2eb7a)
Closes-Bug: #1421752
(cherry picked from commit acc3904c3c0b56e
(cherry picked from commit d1c215fd9cab5a7