PEATDB/zodbtest.py
def testLoading():
    """Test loading times for large DB"""   
    from PEATDB.PEATTables import PEATTableModel
    t1 = time()
    DB = PDatabase(local='large.fs')
    #DB = PDatabase(server='localhost', port=8080, username='farrell',
    #                     password='123', project='large')    
    t2=time()
    print round(t2 - t1,2)
    
    print DB.getRecs()
    t3=time()
    print round(t3 - t2,2)
    
    print DB.meta
    t4=time()
    print t4 - t3
    
    M = PEATTableModel(DB)
    print M
    t5=time()
    print t5 - t4
        
    return
Test loading times for large DB
Test loading times for large DB
Test loading times for large DB
def testLoading():
    from PEATDB.PEATTables import PEATTableModel
    t1 = time()
    DB = PDatabase(local='large.fs')
    t2=time()
    print round(t2 - t1,2)
    print DB.getRecs()
    t3=time()
    print round(t3 - t2,2)
    print DB.meta
    t4=time()
    print t4 - t3
    M = PEATTableModel(DB)
    print M
    t5=time()
    print t5 - t4
    return
def testLoading ( ) : from PEATDB . PEATTables import PEATTableModel t1 = time ( ) DB = PDatabase ( local = 'large.fs' ) t2 = time ( ) print round ( t2 - t1 , 2 ) print DB . getRecs ( ) t3 = time ( ) print round ( t3 - t2 , 2 ) print DB . meta t4 = time ( ) print t4 - t3 M = PEATTableModel ( DB ) print M t5 = time ( ) print t5 - t4 return
Test loading times for large DB
Test loading times for large DB
"""Test loading times for large DB""" #DB = PDatabase(server='localhost', port=8080, username='farrell', #                     password='123', project='large')    