Skip to content

Instantly share code, notes, and snippets.

@bigbes
Created April 21, 2016 16:53
Show Gist options
  • Save bigbes/601b8b4168ab7309bb9caf23251bbaba to your computer and use it in GitHub Desktop.
Save bigbes/601b8b4168ab7309bb9caf23251bbaba to your computer and use it in GitHub Desktop.
-- wal is off, good opportunity to test something more CPU intensive:
env = require('test_run')
---
...
test_run = env.new()
---
...
spaces = {}
---
...
box.schema.FORMAT_ID_MAX
---
- 65534
...
test_run:cmd("setopt delimiter ';'")
---
- true
...
-- too many formats
for k = 1, box.schema.FORMAT_ID_MAX, 1 do
local s = box.schema.space.create('space'..k)
table.insert(spaces, s)
end;
#spaces;
-- cleanup
for k, v in pairs(spaces) do
v:drop()
end;
[Lost current connection]
test_run:cmd("setopt delimiter ''");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment