Report a Dgraph Client Bug
What Dgraph client (and version) are you using?
(put “x” in the box to select)
- Dgo
- PyDgraph
- Dgraph4J
- Dgraph-js
- Dgraph-js-http
- Dgraph.NET
Version:
What version of Dgraph are you using?
v21.03.0-76-ged09b8cc1
Have you tried reproducing the issue with the latest release?
If it is different from the one above, I don’t think so.
What is the hardware spec (RAM, OS)?
unknown
Steps to reproduce the issue (command/config used to run Dgraph).
Run this query
query getPastGoalsForReflections($backfillDate: string, $batchSize: string, $offset: string)
{
goals(func: has(goalTitle), first:$batchSize, offset:$offset) @filter(
type(GOAL) and
(gt(startTimeInMillis, $backfillDate)
or
gt(endTimeInMillis, $backfillDate))
and not eq(importedAsReflection, true)
) {
goalUid: uid
goalTitle
startTimeInMillis
endTimeInMillis
creator: goalCreatedByOrgUser @normalize {
orgUserId: uid
org: belongsTo @filter(TYPE(ORGANIZATION)) {
orgId: uid
}
}
owner: goalAssignedToOrgUser @normalize {
orgUserId: uid
org: belongsTo @filter(TYPE(ORGANIZATION)) {
orgId: uid
}
}
collaborators: goalCollaboratedByOrgUsers @normalize {
orgUserId: uid
org: belongsTo @filter(TYPE(ORGANIZATION)) {
orgId: uid
}
}
}
}
where the backfillDate is a timestamp in milliseconds, batch 100 offset 0
Run that in Ratel,
Then also run through C# using the .Net library Query method.
var result = await _dgraphService.Query(query, varMap, null);
Expected behaviour and actual result.
Expected: Ratel and Dgraph C# library run the same query in the same amount of time.