4 ms·
Well, reality often works differently, and the bulk of the work is to prepare the environment where that SQL query may run. You have various data sources - and
by avmich 3y ago
Well, reality often works differently, and the bulk of the work is to prepare the environment where that SQL query may run. You have various data sources - and which one exactly, that SQL query won't tell you, you'll usually have to go and find out with some other means. The data sources have various interfaces and formats - and sometimes protocols too. You might decide to collect the data together, to that proverbial data lake - then to run the SQL query you'll have to design that data lake, tables, columns and all, and convert the data into it. Or - I was wondering if this applies to the described problem - for one-off calculations you may choose to work with streams of data, skipping building data lakes - this can work, but how to correctly map SQL to streaming data could be an interesting problem - what if some data you need several times for several different intermediate functions, will you have to read streams many times or do something else?..
So, yes, the SQL query. Perhaps one of the small and easy parts of the problem.