Exemple #1
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()
Exemple #2
0
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)