Paul "LeoNerd" Evans
|
63cb7ece62
|
Rename the timer metrics exported by synapse.storage to append _time, so the meaning of ':total' is clearer
|
2015-03-12 16:24:51 +00:00 |
|
Paul "LeoNerd" Evans
|
f1fbe3e09f
|
Rename TimerMetric to DistributionMetric; as it could count more than just time
|
2015-03-12 16:24:51 +00:00 |
|
Paul "LeoNerd" Evans
|
642f725fd7
|
Pretend the 'getEvent' cache is just another cache in the set of all the others for metric
|
2015-03-12 16:24:51 +00:00 |
|
Paul "LeoNerd" Evans
|
b0cf867319
|
Use _ instead of . as a metric namespacing separator, for Prometheus
|
2015-03-12 16:24:51 +00:00 |
|
Paul "LeoNerd" Evans
|
f9478e475b
|
Rename Metrics' "keys" to "labels"
|
2015-03-12 16:24:51 +00:00 |
|
Paul "LeoNerd" Evans
|
fa319a5786
|
Add TimerMetrics to shadow the PerformanceCounters in synapse.storage; with the view to eventually replacing them entirely
|
2015-03-12 16:24:51 +00:00 |
|
Paul "LeoNerd" Evans
|
25187ab674
|
Collect per-SQL-verb timer stats on query execution time
|
2015-03-12 16:24:50 +00:00 |
|
Paul "LeoNerd" Evans
|
e1a7e3564f
|
Delete a couple of TODO markers of monitoring stats now done
|
2015-03-12 16:24:50 +00:00 |
|
Paul "LeoNerd" Evans
|
8664599af7
|
Rename CacheCounterMetric to just CacheMetric; add a CallbackMetric component to give the size of the cache
|
2015-03-12 16:24:50 +00:00 |
|
Paul "LeoNerd" Evans
|
b0cdf097f4
|
Sprinkle some CacheCounterMetrics around the synapse.storage layer
|
2015-03-12 16:24:50 +00:00 |
|
Paul "LeoNerd" Evans
|
59a5f012cc
|
Also give _execute() a description
|
2015-03-11 17:19:17 +00:00 |
|
Paul "LeoNerd" Evans
|
099e4b88d8
|
Add a description to storage layer's _execute_and_decode()
|
2015-03-11 17:08:57 +00:00 |
|
Kegan Dougal
|
3d73383d18
|
Modify _simple_select_list to allow an empty WHERE clause. Use it for get_all_rooms and get_all_users.
|
2015-03-02 10:16:24 +00:00 |
|
Paul "LeoNerd" Evans
|
9640510de2
|
Use OrderedDict for @cached backing store, so we can evict the oldest key unbiased
|
2015-02-23 18:41:58 +00:00 |
|
Paul "LeoNerd" Evans
|
f53fcbce97
|
Use cache.pop() instead of a separate membership test + del []
|
2015-02-23 18:30:45 +00:00 |
|
Mark Haines
|
27080698e7
|
Fix code style warning
|
2015-02-23 18:19:13 +00:00 |
|
Paul "LeoNerd" Evans
|
a09e59a698
|
Pull the _get_event_cache.setdefault() call out of the try block, as it doesn't need to be there and is confusing
|
2015-02-23 16:55:57 +00:00 |
|
Paul "LeoNerd" Evans
|
e76d485e29
|
Allow @cached-wrapped functions to have a prefill method for setting entries
|
2015-02-23 15:41:54 +00:00 |
|
Paul "LeoNerd" Evans
|
55022d6ca5
|
Remove a TODO note
|
2015-02-19 18:38:09 +00:00 |
|
Paul "LeoNerd" Evans
|
ebc3db295b
|
Take named arguments to @cached() decorator, add a 'max_entries' limit
|
2015-02-19 18:36:02 +00:00 |
|
Paul "LeoNerd" Evans
|
077d200342
|
Move @cached decorator out into synapse.storage._base; add minimal docs
|
2015-02-19 17:29:39 +00:00 |
|
Erik Johnston
|
42bc56dad3
|
Merge branch 'develop' of github.com:matrix-org/synapse into use-simplejson
|
2015-02-11 17:01:38 +00:00 |
|
Mark Haines
|
aff892ce79
|
Fix formatting
|
2015-02-11 15:02:35 +00:00 |
|
Mark Haines
|
f5a70e0d2e
|
Add a cache for get_event
|
2015-02-11 15:01:15 +00:00 |
|
Erik Johnston
|
4ebbaf0d43
|
Blunty replace json with simplejson
|
2015-02-11 14:23:10 +00:00 |
|
Mark Haines
|
b085fac735
|
Code-style fixes
|
2015-02-10 16:30:48 +00:00 |
|
Mark Haines
|
fda4422bc9
|
Fix pyflakes
|
2015-02-10 14:54:07 +00:00 |
|
Mark Haines
|
d7c7efb691
|
Add performance counters for different stages of loading events
|
2015-02-10 14:50:53 +00:00 |
|
Mark Haines
|
0c4536da8f
|
Use the transaction 'desc' rather than 'name', increment the txn_ids in
txn names
|
2015-02-09 18:06:31 +00:00 |
|
Mark Haines
|
347b497db0
|
Formatting
|
2015-02-09 17:57:09 +00:00 |
|
Mark Haines
|
3a5ad7dbd5
|
Performance counters for database transaction names
|
2015-02-09 17:55:56 +00:00 |
|
Erik Johnston
|
c4ee4ce93e
|
Fix typo
|
2015-02-09 15:00:37 +00:00 |
|
Erik Johnston
|
66fde49f07
|
Log database time every 10s and log as percentage
|
2015-02-09 14:45:15 +00:00 |
|
Erik Johnston
|
75656712e3
|
Time how long we're spending on the database thread
|
2015-02-09 14:22:52 +00:00 |
|
Erik Johnston
|
2f4cb04f45
|
Be more specific in naming columns in selects.
|
2015-01-30 14:48:11 +00:00 |
|
Erik Johnston
|
e0b7c521cb
|
Merge branch 'develop' of github.com:matrix-org/synapse into rejections_storage
Conflicts:
synapse/storage/__init__.py
synapse/storage/schema/delta/v12.sql
|
2015-01-30 14:08:28 +00:00 |
|
David Baker
|
6d485dd1c7
|
unnecessary newlines
|
2015-01-28 14:48:42 +00:00 |
|
David Baker
|
fb0928097a
|
More magic commas (including the place I copied it from...)
|
2015-01-28 14:48:07 +00:00 |
|
David Baker
|
0cbb6b0f52
|
Google doc style
|
2015-01-28 14:44:41 +00:00 |
|
Erik Johnston
|
b1b85753d7
|
Add support for storing rejected events in EventContext and data stores
|
2015-01-22 15:50:17 +00:00 |
|
David Baker
|
c06a9063e1
|
Merge branch 'develop' into pushers
|
2015-01-13 13:15:51 +00:00 |
|
Erik Johnston
|
36a2a877e2
|
Use time.time() instead of time.clock()
|
2015-01-06 16:34:41 +00:00 |
|
Erik Johnston
|
52b2c6c9c7
|
Don't include None's in _get_events_txn
|
2015-01-06 14:56:57 +00:00 |
|
Mark Haines
|
5e23a19204
|
Merge pull request #28 from matrix-org/erikj-perf
Database performance improvements.
|
2015-01-06 13:33:40 +00:00 |
|
Mark Haines
|
adb04b1e57
|
Update copyright notices
|
2015-01-06 13:21:39 +00:00 |
|
Erik Johnston
|
af1c7c7808
|
PEP8
|
2015-01-06 13:13:17 +00:00 |
|
Erik Johnston
|
52d8519008
|
Don't do batching when getting events.
|
2015-01-06 13:10:27 +00:00 |
|
Erik Johnston
|
98933e3db6
|
Only fetch prev_content when a client is streaming/paginating. Use transactions for event streams.
|
2015-01-06 13:03:23 +00:00 |
|
Erik Johnston
|
3e26720e05
|
Temporarily turn off 'redacted_because' and 'prev_content' keys
|
2015-01-06 11:26:58 +00:00 |
|
Erik Johnston
|
f4ea78e9e2
|
More debug logging
|
2015-01-06 11:24:18 +00:00 |
|