config: improve performance by not reading backref/children from db if not needed
Bug #1421752 reported by
Hampapur Ajay
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
Undecided
|
Hampapur Ajay |
Bug Description
in cassandra_
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.
Changed in juniperopenstack: | |
assignee: | nobody → Hampapur Ajay (hajay) |
To post a comment you must log in.
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