Hi, for performance reasons (and coherence with the standard sql query), when doing db.NewRaw(query) the returned object should have the .Rows() property for using an iterator instead of scanning the whole result.
This is crucial for big workloads where batching is required to avoid using too much memory (exporting for example). Right now the only workaround I can think of is manually adding offset and limit.
Thanks
Hi, for performance reasons (and coherence with the standard
sqlquery), when doingdb.NewRaw(query)the returned object should have the.Rows()property for using an iterator instead of scanning the whole result.This is crucial for big workloads where batching is required to avoid using too much memory (exporting for example). Right now the only workaround I can think of is manually adding offset and limit.
Thanks