Added an index for db.meter to sort by descending time stamp for class
Connection in ceilometer/storage/impl_mongodb.py
ensure_index() is used rather than create_index() to be more efficient.
This index is needed because get_samples() in
ceilometer/storage/impl_mongodb.py sorts by descending timestamp. Without an
index, MongoDB will fail to sort if the database is too large.
Reviewed: https:/ /review. openstack. org/36159 github. com/openstack/ ceilometer/ commit/ e984f28b00e3a07 3c176f6435507f5 bce1c82d30
Committed: http://
Submitter: Jenkins
Branch: master
commit e984f28b00e3a07 3c176f6435507f5 bce1c82d30 precise64. (none)>
Author: vagrant <vagrant@
Date: Tue Jul 9 02:29:36 2013 +0000
Add index for db.meter by descending timestamp
Fixes bug #1193906
Added an index for db.meter to sort by descending time stamp for class storage/ impl_mongodb. py
Connection in ceilometer/
ensure_index() is used rather than create_index() to be more efficient.
This index is needed because get_samples() in storage/ impl_mongodb. py sorts by descending timestamp. Without an
ceilometer/
index, MongoDB will fail to sort if the database is too large.
Change-Id: I23070f153ce03a 8d6d8c9f17f05e2 d5dae38647e