Add new builder iterators, v2

Subcommits:

link iterator next/contains

implement sql_node_iterator next/buildsql

fix optimizers
This commit is contained in:
Barak Michener 2015-07-23 16:01:20 -04:00
parent 621acae945
commit 7153a766c1
7 changed files with 1173 additions and 169 deletions

View file

@ -51,11 +51,14 @@ var benchmarkQueries = []struct {
long bool
query string
tag string
expect []interface{}
// for testing
skip bool
expect []interface{}
}{
// Easy one to get us started. How quick is the most straightforward retrieval?
{
message: "name predicate",
skip: true,
query: `
g.V("Humphrey Bogart").In("name").All()
`,
@ -69,6 +72,7 @@ var benchmarkQueries = []struct {
// that's going to be measurably slower for every other backend.
{
message: "two large sets with no intersection",
skip: true,
query: `
function getId(x) { return g.V(x).In("name") }
var actor_to_film = g.M().In("/film/performance/actor").In("/film/film/starring")
@ -534,6 +538,9 @@ func checkQueries(t *testing.T) {
if testing.Short() && test.long {
continue
}
if test.skip {
continue
}
fmt.Printf("Now testing %s\n", test.message)
ses := gremlin.NewSession(handle.QuadStore, cfg.Timeout, true)
_, err := ses.Parse(test.query)