ets Questions

4

I want to create a table in ets if it does not exists . How can I check if this named exists or not ?
Rosyrot asked 30/8, 2018 at 10:36

1

I did some tests around performance of selection from ets tables and noted weird behaviour. For example we have a simple ets table (without any specific options) which stores key/value - a random s...
Petulah asked 31/10, 2019 at 9:32

2

I am using ets() and auto.arima() functions from forecast package to predict future values in R. Which criteria should be used to choose the best model between these two? Following is the accurac...
Vinic asked 17/5, 2013 at 4:52

1

Solved

Suppose I have an ets table like: I = ets:new(mytable, [named_table, set]). ets:insert(I, {10,{10, 4 ,"description"}). I would like to update the element 4 using the ets:update_counter. I tried...
Headcheese asked 29/12, 2017 at 12:20

3

Solved

I'm using ets via elixir as a simple in-memory persistence layer to store and retrieve keys and also for the occasional foldl which involves reducing many duplicate keys that have different values....
Jarvisjary asked 1/2, 2016 at 3:29

1

I find "The functions ets:select/2 and mnesia:select/3 should be preferred over ets:match/2,ets:match_object/2, and mnesia:match_object/3" form ref link : http://www.erlang.org/doc/efficiency_guide...
Quick asked 8/4, 2015 at 3:0

2

I'm considering using Erlang's ETS as a cache for user searches in a new Elixir project. Based on user input, the system will do lookups using an expensive third-party API. In order to avoid makin...
Luu asked 21/8, 2016 at 23:37

3

I have a lot of analytics data which I'm looking to aggregate every so often (let's say one minute.) The data is being sent to a process which stores it in an ETS table, and every so often a timer ...
Ilianailine asked 30/5, 2015 at 18:10

1

ets:select vs mnesia:select Which is better to use.And also in case of insertion and deletion which one of these two we should use.I am working on ejabberd.Any pointers?
Intergrade asked 13/2, 2015 at 6:1

2

Solved

Give an ETS table with data, the info/1 function returns various properties for the table, including a size value which is specific to the number of rows rather than the physical size. Is there a...
Protomorphic asked 23/2, 2014 at 20:2

4

Solved

I create ETS table in one process and I want use it in another process. How I "open" ETS table in second process? Could not find good function in man pages.
Kero asked 28/10, 2012 at 20:6

1

Solved

I need some suggestion for the erlang in-memory cache system. The cache item is key-value based storage. key is usually an ASCII string; value is erlang's types include number / list / tupl...
Conductance asked 24/5, 2013 at 2:28

3

Solved

I have heard that specifying records through tuples in the code is a bad practice: I should always use record fields (#record_name{record_field = something}) instead of plain tuples {record_name, v...
Fastidious asked 29/9, 2011 at 8:50

3

I'm coming into an existing (game) project whose server component is written entirely in erlang. At times, it can be excruciating to get a piece of data from this system (I'm interested in how many...
Goings asked 2/8, 2011 at 21:15

1

I have qlc RefsBlocked = qlc:e(qlc:q([ Ref1 || {{Ref1, {pattern, {_Status1, _Pattern1, Limit1}}}, Count} <- dict:to_list( qlc:fold( fun({Key, _Ref2}, Acc) -> dict:update_counter(Key, 1,...
Strand asked 12/4, 2011 at 11:53

3

Solved

((Please forgive me that I ask more than one question in a single thread. I think they are related.)) Hello, I wanted to know, what best practices exist in Erlang in regards to per-module precompi...
Thetis asked 30/5, 2011 at 23:2

2

Solved

Short version: is it safe to use ets:foldl to delete every ETS record as one is iterating through them? Suppose an ETS table is accumulating information and now it's time to process it all. A reco...
Isthmian asked 5/12, 2010 at 19:18

1

Solved

I'm building an erlang server. Users sends http requests to the server to update their status. The http request process on the server saves the user status message in memory. Every minute the serve...
Kronos asked 28/1, 2010 at 12:14

2

Solved

I've been learning how to use ets, but one thing that has bothered me is that, occasionally*, ets:match throws a bad argument… And, from them on, all subsequent calls (even calls which previously w...
Gilead asked 27/12, 2009 at 2:39
1

© 2022 - 2024 — McMap. All rights reserved.