Skip to content

Instantly share code, notes, and snippets.

@ybur-yug
Created June 24, 2016 01:09
Show Gist options
  • Select an option

  • Save ybur-yug/adcfb949c2bc10baa49da8934cb811e9 to your computer and use it in GitHub Desktop.

Select an option

Save ybur-yug/adcfb949c2bc10baa49da8934cb811e9 to your computer and use it in GitHub Desktop.
[info] GET /bars
[debug] Processing by UshersOnline.BarController.index/2
Parameters: %{"str" => "lill"}
Pipelines: [:browser]
[debug] SELECT *
FROM bars
WHERE levenshtein(baz, $1) < 6
ORDER BY levenshtein(baz, $1)
LIMIT 20;
["lill"] OK query=109.6ms queue=26.0ms
[info] Sent 200 in 187ms
[info] GET /bars
[debug] Processing by UshersOnline.BarController.index/2
Parameters: %{"str" => "lill"}
Pipelines: [:browser]
[debug] SELECT *
FROM bars
WHERE levenshtein(baz, $1) < 6
ORDER BY levenshtein(baz, $1)
LIMIT 20;
["lill"] OK query=8.5ms
[info] Sent 200 in 10ms
[info] GET /bars
[debug] Processing by UshersOnline.BarController.index/2
Parameters: %{"str" => "bill"}
Pipelines: [:browser]
[debug] SELECT *
FROM bars
WHERE levenshtein(baz, $1) < 6
ORDER BY levenshtein(baz, $1)
LIMIT 20;
["bill"] OK query=8.7ms
[info] Sent 200 in 10ms
[info] GET /bars
[debug] Processing by UshersOnline.BarController.index/2
Parameters: %{"str" => "thomas"}
Pipelines: [:browser]
[debug] SELECT *
FROM bars
WHERE levenshtein(baz, $1) < 6
ORDER BY levenshtein(baz, $1)
LIMIT 20;
["thomas"] OK query=12.1ms
[info] Sent 200 in 14ms
[info] GET /bars
[debug] Processing by UshersOnline.BarController.index/2
Parameters: %{"str" => "jameson"}
Pipelines: [:browser]
[debug] SELECT *
FROM bars
WHERE levenshtein(baz, $1) < 6
ORDER BY levenshtein(baz, $1)
LIMIT 20;
["jameson"] OK query=9.5ms
[info] Sent 200 in 11ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment