V21.03: After pagination+cascade change, queries are too slow to finish

Yea thats very much like my query I am settling with. Sorta like this:
edit: (to change my wording:) yea that sounds better than what I have to do, which is like the following

query q($prelimit: int = 1000, $limit: int = 10) {
  var_a as var(func: eq(<qa.type>, "Device"), first: $prelimit) {
    var_b as <qa.has_object> @filter(eq(<qa.type>, "Object"))  (first: $prelimit) {
      var_c as <qa.has_indicator> @filter(eq(<qa.type>, "Indicator")) (first: $prelimit)
    }
  }
  a(func: uid(var_a), first: $limit) @cascade {
    ...commonFields
    b: <qa.has_object> @filter(uid(var_b)) (first: $limit) {
      ...commonFields
      c: <qa.has_indicator> @filter(uid(var_c))  (first: $limit) {
        ...commonFields
      }
    }
  }
}

and just guess how many you are going to filter out with cascade… which I just have set to the same thing at this point because there is no way for me to guess how much will be filtered.

2 Likes