예제 #1
0
파일: pl.py 프로젝트: nlake44/GAEBenchmark
def getTable1Ent(num_entries, k):
  if num_entries >= 1000000:
    return TableOne1M.get_by_key_name(k)
  if num_entries >= 100000:
    return TableOne100K.get_by_key_name(k)
  if num_entries >= 10000:
    return TableOne10K.get_by_key_name(k)
  if num_entries >= 1000:
    return TableOne1K.get_by_key_name(k)
  if num_entries >= 100:
    return TableOne100.get_by_key_name(k)
예제 #2
0
def getQueryKind(num_entries):
  if num_entries >= 1000000:
    return TableOne1M.all()
  if num_entries >= 100000:
    return TableOne100K.all()
  if num_entries >= 10000:
    return TableOne10K.all()
  if num_entries >= 1000:
    return TableOne1K.all()
  if num_entries >= 100:
    return TableOne100.all()
예제 #3
0
파일: pl.py 프로젝트: nlake44/GAEBenchmark
def getQuery(num_entries):
  if num_entries >= 1000000:
    return TableOne1M.all(keys_only=True)
  if num_entries >= 100000:
    return TableOne100K.all(keys_only=True)
  if num_entries >= 10000:
    return TableOne10K.all(keys_only=True)
  if num_entries >= 1000:
    return TableOne1K.all(keys_only=True)
  if num_entries >= 100:
    return TableOne100.all(keys_only=True)