Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When are QLCs much less efficient?

Tags:

erlang

In practice, Query List Comprehensions seem to be fine for all uses of Mnesia and ets/dets tables. Are there any operations (or types of operation) that are significantly more efficient than their QLC equivalents?

(I'm thinking along the lines of the answer in Which is more expensive to the RAM, A query list comprehension, or a mnesia index_read?)

like image 723
amindfv Avatar asked Jul 23 '13 00:07

amindfv


1 Answers

For large data sets I'm using mnesia:select (http://www.erlang.org/doc/man/mnesia.html#select-2). In my tests it works 1.5 time faster than same QLC queries.

like image 57
Max Davidenko Avatar answered Sep 23 '22 03:09

Max Davidenko