| 1 |
# This is too slow with HTTP chunked. |
| 2 |
#@require-interface stdio |
| 3 |
|
| 4 |
table_create --name Users --flags TABLE_PAT_KEY --key_type ShortText |
| 5 |
|
| 6 |
# About data to load. |
| 7 |
# 4,194,304 bytes per segment. |
| 8 |
# 15 bytes per key. |
| 9 |
# 4,194,304 / 15 = 279,620 with a remainder of 4. |
| 10 |
# The data is a bit over from the first segment. |
| 11 |
#@timeout 400 |
| 12 |
#@disable-logging |
| 13 |
#@generate-series 1 279620 Users '{"_key" => "User%011d" % i}' |
| 14 |
load --table Users |
| 15 |
[ |
| 16 |
{"_key":"ABCDE"} |
| 17 |
] |
| 18 |
#@enable-logging |
| 19 |
#@timeout default |
| 20 |
|
| 21 |
object_inspect Users |