Browse Source

Tweak cache sizes to account for large numbers of decimated tables

tags/nilmdb-1.6.2^0
Jim Paris 11 years ago
parent
commit
2317894355
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      nilmdb/server/bulkdata.py
  2. +1
    -1
      nilmdb/server/nilmdb.py

+ 2
- 2
nilmdb/server/bulkdata.py View File

@@ -19,8 +19,8 @@ from . import rocket

# Up to 256 open file descriptors at any given time.
# These variables are global so they can be used in the decorator arguments.
table_cache_size = 16
fd_cache_size = 16
table_cache_size = 32
fd_cache_size = 8

@nilmdb.utils.must_close(wrap_verify = False)
class BulkData(object):


+ 1
- 1
nilmdb/server/nilmdb.py View File

@@ -176,7 +176,7 @@ class NilmDB(object):
raise NilmDBError("start must precede end")
return (start, end)

@nilmdb.utils.lru_cache(size = 16)
@nilmdb.utils.lru_cache(size = 64)
def _get_intervals(self, stream_id):
"""
Return a mutable IntervalSet corresponding to the given stream ID.


Loading…
Cancel
Save