Commit fa31c438 authored by Alan Mitchell's avatar Alan Mitchell
Browse files

Change Database Size

parent 206e98da
...@@ -7,8 +7,8 @@ import time ...@@ -7,8 +7,8 @@ import time
import traceback import traceback
import bmsapp.readingdb.bmsdata import bmsapp.readingdb.bmsdata
BLDG_COUNT = 20 BLDG_COUNT = 8
SENSOR_COUNT = 30 SENSOR_COUNT = 9
YRS_OF_READINGS = 2 YRS_OF_READINGS = 2
READING_SPACING = 10.0 # minutes READING_SPACING = 10.0 # minutes
......
...@@ -175,7 +175,7 @@ if __name__ == '__main__': ...@@ -175,7 +175,7 @@ if __name__ == '__main__':
i = 0 i = 0
while True: while True:
thread_count, rdg_delay, no_query = post_params[i % param_len] thread_count, rdg_delay, no_query = post_params[i % param_len]
results = query_under_load(thread_count, rdg_delay, 100, 20, no_query) results = query_under_load(thread_count, rdg_delay, 8, 9, no_query)
results = [time.time(), thread_count, rdg_delay] + results results = [time.time(), thread_count, rdg_delay] + results
res_str = '\t'.join(['%.2f' % val for val in results]) res_str = '\t'.join(['%.2f' % val for val in results])
open('performance.txt', 'a').write(res_str + '\n') open('performance.txt', 'a').write(res_str + '\n')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment