Skip to content

Is it efficient to query data in Rust and send it to the frontend in Tauri, or should I use an SQL plugin for better performance? #11845

Answered by FabianLars
congchuahiep asked this question in Q&A
Discussion options

You must be logged in to vote

Both options are essentially the same. The sql plugin is nothing special, it also just calls the rust side and there uses the sqlx plugin.
Using rust yourself directly is likely better as you can optimize the implementation to what you actually need, and not have to use the general purpose impl of the plugin. Also it would enable you to pre-process the responses on the rust side and sending only what you need to the frontend which would help with the big IPC bottleneck.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by congchuahiep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants