deb-ceilometer/ceilometer/storage
ZhiQiang Fan a4f4429405 avoid unnecessary inner join in get_resources() for SQL backend
To get distinct resource ids, we do a query on resource table which
inner join sample table, and apply filters on it.

Note that when sql_expire_samples_only is enabled, there will be
some resources without any sample, in such case we must use inner
join to avoid wrong result, no matter if there is a timestamp filter
or not.

But that option is disabled by default, so when there is no timestamp
filters, the inner join is unnecessary, we should avoid it to save
some RAM/CPU cost.

Change-Id: If85dbea15d42d42c6b0be7402c06f258e278b2eb
Closes-Bug: #1509677
2015-10-26 20:29:03 -06:00
..
hbase Parametrize table_prefix_separator in hbase 2015-09-28 10:45:06 +02:00
mongo mark logging.info translation accordingly 2015-10-07 03:03:00 +00:00
sqlalchemy avoid generate temporary table when query samples 2015-10-19 17:08:20 -06:00
__init__.py mongodb: remove deprecated replica_set support 2015-09-25 17:27:11 +02:00
base.py apply limit constraint on storage base interface 2015-09-17 02:54:25 -07:00
impl_db2.py add mandatory limit value to resource list 2015-07-22 13:48:44 +00:00
impl_hbase.py do not translate debug logs 2015-08-12 22:43:52 -04:00
impl_log.py mark logging.info translation accordingly 2015-10-07 03:03:00 +00:00
impl_mongodb.py do not translate debug logs 2015-08-12 22:43:52 -04:00
impl_sqlalchemy.py avoid unnecessary inner join in get_resources() for SQL backend 2015-10-26 20:29:03 -06:00
models.py Upgrade to hacking 0.10 2015-01-23 17:43:04 +01:00
pymongo_base.py Cast Int64 values to float 2015-08-07 11:50:13 +03:00