[erlang-questions] Efficiency of qlc

Michael Uvarov freeakk@REDACTED
Tue Nov 20 08:39:41 CET 2012


When I have a problem with erl_eval, I created beam modules with my
code dynamically using smerl.
https://github.com/adie/erlydb/blob/master/src/smerl/smerl.erl

But it does not solve all problems, because this _compilation_ is slow
too. But compiled code is fast.
You can collect statistic for each unique query and compile
intensively used ones.

It is also a good idea to use parametrized queries like this:
SELECT * FROM t1 WHERE f1 = ?
It will decrease the count of unique queries.



More information about the erlang-questions mailing list