Пример #1
0
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
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)