class TestSpeedRetrieval(webapp.RequestHandler):
"""
Test retrieval times of various important records in the BigTable database
"""
def get(self):
commandValidated = True
beginTime = time()
itemList = Subscriber.all().fetch(1000)
for item in itemList:
pass
endTime = time()
self.response.out.write("<br/>Subscribers count=" + str(len(itemList)) +
" Duration=" + duration(beginTime,endTime))
How can I turn the above into a function where I pass the name of the class? In the above example, Subscriber is a class name.
I want to do something like this:
TestRetrievalOfClass(Subscriber)
or TestRetrievalOfClass("Subscriber")
Thanks, Neal Walters