Skip to content

perf: use strings.Builder in storage for constructing queries#4300

Draft
gudvinr wants to merge 9 commits into
miniflux:mainfrom
gudvinr:feature/qb_where_builder
Draft

perf: use strings.Builder in storage for constructing queries#4300
gudvinr wants to merge 9 commits into
miniflux:mainfrom
gudvinr:feature/qb_where_builder

Conversation

@gudvinr

@gudvinr gudvinr commented May 8, 2026

Copy link
Copy Markdown
Contributor

Have you followed these guidelines?


Assembling WHERE expressions is pretty straightforward as those are building up and there's no OR anywhere inside builder.

Similarly, ORDER BY builds up with a simple append operation.

@gudvinr

gudvinr commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

I haven't really tested these yet as there are no unit tests. At first glance, changes are pretty straightforward.

No benchmark code is added because queries are built right before doing actual request to DB. Not sure how to do any meaningful benchmark for that.

@gudvinr gudvinr force-pushed the feature/qb_where_builder branch from 0975e61 to 93c4666 Compare May 11, 2026 17:39
@gudvinr gudvinr force-pushed the feature/qb_where_builder branch 4 times, most recently from 2a895c4 to da2b218 Compare May 25, 2026 17:37
@gudvinr gudvinr force-pushed the feature/qb_where_builder branch from da2b218 to c34fea9 Compare May 26, 2026 19:32
@gudvinr gudvinr force-pushed the feature/qb_where_builder branch from c34fea9 to c8eb3e7 Compare June 6, 2026 17:19
@gudvinr gudvinr force-pushed the feature/qb_where_builder branch from c8eb3e7 to 098d1d8 Compare June 6, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant