#NEWLINE# def query_db( self , niter , avoidfscache , verbose ) : #NEWLINE# #INDENT# self . con = self . open_db ( ) #NEWLINE# earray = self . con . root . earray #NEWLINE# if avoidfscache : #NEWLINE# #INDENT# rseed = int ( numpy . random . randint ( t1 . nrows ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# rseed = 19 #NEWLINE# #UNINDENT# numpy . random . seed ( rseed ) #NEWLINE# numpy . random . randint ( self . nrows ) #NEWLINE# ltimes = [ ] #NEWLINE# for i in range ( niter ) : #NEWLINE# #INDENT# t1 = time ( ) #NEWLINE# self . do_query ( earray , numpy . random . randint ( self . nrows ) ) #NEWLINE# ltimes . append ( ( time ( ) - t1 ) ) #NEWLINE# #UNINDENT# self . print_qtime ( ltimes ) #NEWLINE# self . close_db ( )