arangoclient.net
arangoclient.net copied to clipboard
InvalidOperationException: Aql functions should only be used in ArangoDatabase.Query
Every time you're using AQL within query InvalidOperationException: Aql functions should only be used in ArangoDatabase.Query
exception thrown and caught. This affects query construction performance.
Adding this for tracking.
@drgraduss thanks for open an separate issue for this. i'm aware of the problem.
Hi @ra0o0f. When to expect fix for this issue? Thanks
@drgraduss not until two month
@drgraduss this should be and will be fixed. but compare these:
Stopwatch watch = new Stopwatch();
watch.Start();
for(int i=0;i<10000;i++)
db.Query<Person>()
.Where(p=> AQL.Contains(p.Fullname,"raoof"))
.Select(p => p).GetQueryData();
watch.Stop();
Console.WriteLine(watch.Elapsed);
Stopwatch watch = new Stopwatch();
watch.Start();
for(int i=0;i<10000;i++)
db.Query<Person>()
.Where(p=>p.Fullname == "raoof")
.Select(p => p).GetQueryData();
watch.Stop();
Console.WriteLine(watch.Elapsed);