Bump up block sizes in client

This will help amortize the sqlite synchronization costs.
This commit is contained in:
Jim Paris 2013-02-28 21:11:57 -05:00
parent ade27773e6
commit d752b882f2
2 changed files with 2 additions and 2 deletions
nilmdb
client
server

View File

@ -220,7 +220,7 @@ class StreamInserter(object):
# These are soft limits -- actual data might be rounded up.
# We send when we have a certain amount of data queued, or
# when a certain amount of time has passed since the last send.
_max_data = 1048576
_max_data = 2 * 1024 * 1024
_max_time = 30
# Delta to add to the final timestamp, if "end" wasn't given

View File

@ -400,7 +400,7 @@ class Server(object):
'server.socket_host': host,
'server.socket_port': port,
'engine.autoreload_on': False,
'server.max_request_body_size': 4*1024*1024,
'server.max_request_body_size': 8*1024*1024,
})
if self.embedded:
cherrypy.config.update({ 'environment': 'embedded' })