lib/shiba/fuzzer.rb in shiba-0.4.0 vs lib/shiba/fuzzer.rb in shiba-0.5.0
- old
+ new
@@ -38,12 +38,12 @@
stats
end
private
- BIG_FUZZ_SIZE = 5_000
- SMALL_FUZZ_SIZE = 100
+ BIG_FUZZ_SIZE = 100_000
+ SMALL_FUZZ_SIZE = 1000
# Create fake table sizes based on the table's index count.
# The more indexes, the bigger the table. Seems to rank tables fairly well.
def guess_table_sizes
@@ -61,14 +61,12 @@
if index_count == 0
index_count = 1
end
size = sizes[table_name]
- # Big
if size >= large_table_index_count
sizes[table_name] = BIG_FUZZ_SIZE
else
- #small
sizes[table_name] = SMALL_FUZZ_SIZE
end
end
sizes