Ok. Dropped the indexes individually, added them back.
{
q0(func:has(hours.tracked),first:2) @filter(gt(hours.tracked,2019-01-01)){
hours.tracked
}
q1(func:has(hours.tracked),first:2) @filter(gt(hours.tracked,2020-01-01)){
hours.tracked
}
q2(func:gt(hours.tracked,2019-01-01),first:2){
hours.tracked
}
q3(func:gt(hours.tracked,2020-01-01),first:2){
hours.tracked
}
}
Gives:
{
"data": {
"q0": [],
"q1": [],
"q2": [
{
"hours.tracked": "2020-01-15T00:00:00Z"
},
{
"hours.tracked": "2020-01-22T00:00:00Z"
}
],
"q3": [
{
"hours.tracked": "2020-01-15T00:00:00Z"
},
{
"hours.tracked": "2020-01-22T00:00:00Z"
}
]
},
"extensions": {
"server_latency": {
"parsing_ns": 317500,
"processing_ns": 87251100,
"encoding_ns": 39700,
"assign_timestamp_ns": 3631000,
"total_ns": 91706300
},
"txn": {
"start_ts": 994740
},
"metrics": {
"num_uids": {
"hours.tracked": 4
}
}
}
}
(Just for clarity, I only added the ‘first’ to be able to show the query without having massive amounts of data coming back. I’ve removed the ‘first:2’ in the queries and get the same result).