[erlang-questions] ets table instead of large record

Robert Virding robert.virding@REDACTED
Sun Oct 23 15:48:51 CEST 2011


You are banned! :-) 

----- Original Message -----

> I'll probably get banned for suggesting this: process dictionary ;)

> > Date: Sat, 22 Oct 2011 07:19:18 -0400
> > From: freza@REDACTED
> > To: joelr1@REDACTED
> > CC: erlang-questions@REDACTED
> > Subject: Re: [erlang-questions] ets table instead of large record
> >
> > # Joel Reymont 2011-10-22:
> > > I have a record of 80 fields or so.
> > >
> > > I would like to use an ETS table for each instance of this
> > > record.
> > >
> > > Each field of the record would become a separate key in my table.
> > >
> > > Are there any drawbacks to this approach?
> >
> > ETS tables are somewhat scarce resource, I'd consider using global
> > table instead of having it per-instance. Other than that, can you
> > tell more about expected access patterns, timing requirements and
> > such? Things can get tricky if you need something that looks too
> > much like transactions (but it's not impossible).
> >
> > BR,
> > -- Jachym
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions

> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111023/367a6f4c/attachment.htm>


More information about the erlang-questions mailing list