@pccb by any chance is it a query that you provide parameters for through the SDK, but hardcode those parameters into the statement in cbq?
This has been a past cause of ‘SDK is slower than UI/cbq’ issues before, e.g. see Query is fast in couchbase query window but slow in C# code - #9 by btburnett3