deb-ceilometer/ceilometer/event/storage
gordon chung 50fc88183c add mandatory limit value to event list
unrestricted listing of events can require significant memory.
this patch implements mandatory limit on event-list

sql backend requires a little rewrite due to fact that we grab data
in two steps: first we grab all events matching query, then we grab
appropriate traits (we don't use orm relationships because it's slow).
we can not just append order_by and limit to first query because we
use query in second part as well and sqlite will complain about
order_by/limit coming before join. this patch changes it to use a
subquery. based on testing, this does not appear to degrade
performance.

DocImpact
ApiImpact

Change-Id: Ib8009d6e4ab6d066ba5fca43b824c24c8cb32d4e
Implements: blueprint mandatory-limit
2015-07-22 09:48:08 -04:00
..
__init__.py isolate event storage models 2014-10-01 21:43:20 -04:00
base.py add mandatory limit value to event list 2015-07-22 09:48:08 -04:00
impl_db2.py ensure collections created on upgrade 2015-04-27 08:50:31 -04:00
impl_elasticsearch.py add mandatory limit value to event list 2015-07-22 09:48:08 -04:00
impl_hbase.py add mandatory limit value to event list 2015-07-22 09:48:08 -04:00
impl_log.py use oslo.log instead of oslo-incubator code 2015-05-28 11:08:02 -04:00
impl_mongodb.py use oslo.log instead of oslo-incubator code 2015-05-28 11:08:02 -04:00
impl_sqlalchemy.py add mandatory limit value to event list 2015-07-22 09:48:08 -04:00
models.py TraitText value restricted to max length 255 2015-06-02 23:11:48 +00:00
pymongo_base.py add mandatory limit value to event list 2015-07-22 09:48:08 -04:00