SQL and R notebooks

Is there a way to decrease compile time by loading a dataset in SQL?

I have very limited (an unsuccessful) experience working with SQL.
You could try https://stackexchange.com or https://db.rstudio.com or https://stackoverflow.com