HNHacker News
TopNewBestAskShowJobs

karthiksr

12 karma · joined February 24, 2017

Microsoft Research India; Building bridges between applications and databases. Past: Microsoft Gray Systems Lab, IIT Bombay and ThoughtWorks.

http://www.karthikramachandra.in

submissionscomments
karthiksr··on Froid: Optimization of Imperative Programs in a Relational Database [pdf]
Thank you. Casper is very interesting work, and I am aware of it. Program synthesis offers an alternative approach to such problems, with different trade offs and characteristics.

The paper includes a brief discussion on synthesis-based techniques, and the reasoning behind Froid's design choices.

karthiksr··on Froid: Optimization of Imperative Programs in a Relational Database [pdf]
Thank you for those pointers.

There are definitely some differences between the kind of UDFs that Spark supports and the kind that Froid handles. For one, Spark UDFs cannot invoke a Spark SQL query in their definition AFAIK, whereas TSQL functions can. But still, some techniques might be applicable. Definitely worth digging further!

karthiksr··on Froid: Optimization of Imperative Programs in a Relational Database [pdf]
Thank you. Conceptually the ideas behind Froid follow from relational algebra so it can be applied to other relational engines as well. However, the details still need to be figured before making any concrete statement.

If you could share any pointers about UDFs and their performance problems in Spark, I would love to investigate more.

karthiksr··on Froid: Optimization of Imperative Programs in a Relational Database [pdf]
Thank you.

The shipped preview has only a bit more than 1500LOC.

The VLDB paper was presented at Rio in Aug this year already, but I'll try to come over to LA anyways :)

karthiksr··on Froid: Optimization of Imperative Programs in a Relational Database [pdf]
It returns a formatted string including the price and the currency code. Eg: "5000 USD".
karthiksr··on Froid: Optimization of Imperative Programs in a Relational Database [pdf]
I am a co-author of the Froid paper, and am around if people have any questions/comments/feedback.

Froid is now available as a feature of SQL Server 2019 preview. The feature is called "Scalar UDF Inlining" https://blogs.msdn.microsoft.com/sqlserverstorageengine/2018...

Available to try out for free here: https://www.microsoft.com/en-us/sql-server/sql-server-2019