We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ad55f9 commit 5fa7af5Copy full SHA for 5fa7af5
frameworks/Ruby/rack-sequel/hello_world.rb
@@ -44,8 +44,9 @@ def db
44
end
45
46
def queries(env)
47
+ ids = ALL_IDS.sample(bounded_queries(env))
48
DB.synchronize do
- ALL_IDS.sample(bounded_queries(env)).map do |id|
49
+ ids.map do |id|
50
World::BY_ID.(id: id)
51
52
@@ -93,9 +94,10 @@ def fortunes
93
94
95
96
def updates(env)
97
98
99
worlds =
100
101
world = World::BY_ID.(id: id)
102
world[:randomnumber] = rand1
103
world
0 commit comments