the following code takes a long time to execute. it seems the sort function is not fast at all! ``` go result := collections.From(&items). WhereEx(expr.Prop("Flag").True()). Take(2).SortEx(expr.Prop("Id").Less(), true). UpdateEx(expr.Prop("Name").SetString(" Updated")). Collect() ```
Activity
malikhan-dev commentedon Jul 24, 2026
thats correct. its because we use heaps. but with the release of ZenQL v2.0.7, sort operation will be alot faster... (using standard library)
resolving issue:
[-]Sort() Method is so slow[/-][+]Sort() Method is slow[/+][-]Sort() Method is slow[/-][+]Sort() method is slow[/+]malikhan-dev commentedon Jul 24, 2026
changes are not expected to break Apis and user syntaxes.