Skip to content

Instantly share code, notes, and snippets.

View sleepycat's full-sized avatar

Mike Williamson sleepycat

View GitHub Profile
@sleepycat
sleepycat / AQL.md
Last active August 21, 2016 21:15
ArangoDB 2.8.9 vs 3.0.5

This is one of the queries from a project I am working on. ArangoDB 2.8.9:

LET organizations = (RETURN GRAPH_NEIGHBORS("test", "vertices/2733712293", { maxDepth: 2, includeData: true, neighborExamples: [{type: "organization"}], uniqueness:{vertices: "global", edges: "global"} }))
FOR org IN FLATTEN(organizations)
  LET technologies = (RETURN GRAPH_NEIGHBORS("test", org, { maxDepth: 2, includeData: true, neighborExamples: [{type: "technology", category: "language"}], uniqueness:{vertices: "global", edges: "global"} }))
    RETURN MERGE(org, {technologies: FLATTEN(technologies)})

Executing this 5 times and recording the time reported by Arango's admin interface:

Keybase proof

I hereby claim:

  • I am sleepycat on github.
  • I am sleepycat (https://keybase.io/sleepycat) on keybase.
  • I have a public key whose fingerprint is 1E0F 0864 0AFC 1733 908B 6458 F776 36AC 51B7 1B99

To claim this, I am signing this object:

@sleepycat
sleepycat / IRB
Created December 2, 2012 03:51
How NOT to handle exceptions
loop do
begin
puts eval gets
rescue Exception => e #Not a good idea!
puts e.message
end
end
@sleepycat
sleepycat / gist:2776498
Created May 23, 2012 17:23
fatal: Not a git repository
mwilliamson$ rvm get head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9248 100 9248 0 0 10344 0 --:--:-- --:--:-- --:--:-- 10344
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1044k 100 1044k 0 0 155k 0 0:00:06 0:00:06 --:--:-- 208k
Upgrading the RVM installation in /Users/mwilliamson/.rvm/