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)
Reviewed: https:/ /review. opencontrail. org/7438 github. org/Juniper/ contrail- generateDS/ commit/ d1c215fd9cab5a7 4edd698f41ce1bc 361bc2eb7a
Committed: http://
Submitter: Zuul
Branch: R2.0
commit d1c215fd9cab5a7 4edd698f41ce1bc 361bc2eb7a
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)
Closes-Bug: #1421752
(cherry picked from commit acc3904c3c0b56e