Skip to content

Question about conceptual model of how render-related select's implemented #309

Answered by lovasoa
3n-mb asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that's all correct ! If you want to dig into deeper details about how sqlpage works, you should check out this section of our README file on github.

In the example above, the first select query is so simple that it will be optimised away by sqlpage; it will not even be sent to the database, and sqlpage will immediately recognize that it needs to open the handlebars template for the chart component and start rendering it with the parameters

{
  "title": "Quarterly Revenue",
  "type": "area"
}

It will render it until the line that says {{~#each_row~}}, and immediately send the beginning of the page to the browser.

Then it will process the second query. This time it is not a simple quer…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@3n-mb
Comment options

@3n-mb
Comment options

@3n-mb
Comment options

@lovasoa
Comment options

@lovasoa
Comment options

Answer selected by 3n-mb
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