Does ets:select/2 block the VM?
Tue Mar 4 14:18:04 CET 2003
On Tue, 4 Mar 2003, Shawn Pearce wrote:
>I may be in a situation of a "system with a lot of
>processes fixing tables". Or at least something like that.
>It all depends, I have a single operation that requires me
>to scan a group of ets tables when a process/connection
>starts up, but after that I should rarely, if ever scan the
>ets tables again. Problem is, I don't know what my
>connection rate is yet. I'm assuming it'll be something
>like hundreds of connections in a 15 minute window in the
>morning as people sign on to the system when they arrive at
>work, and then almost no activity for the rest of the day.
If safe_fixtable() scares you, you may want to consider
serializing the select/3 and insert/2 operations with a
server. This will eliminate the need for fixtable.
Ulf Wiger, Senior Specialist,
/ / / Architecture & Design of Carrier-Class Software
/ / / Strategic Product & System Management
/ / / Ericsson AB, Connectivity and Control Nodes
More information about the erlang-questions