[erlang-questions] HOW TO IMPROVE THE PERFORMANCE OF DETS

chamila piyasena <>
Thu Dec 21 10:52:40 CET 2006


Sorry for   filling  your mail boxes,
But i just  have an idea while  practicing some commands over  dets
database  that whether there is a possibility to improve the rate of
searching by changing the value N in *select(Name, MatchSpec, N) ->*

is there any possibility?
Is there any advantage in using a large value or a small value for that?

Thanx

Chamila

On 12/21/06, chamila piyasena <> wrote:
>
> Hi again,
>
> Is there any way to make dets faster , or can any one say how to implement
> indexing over dets
>
> thanx
>
> Chamila
>
> On 12/20/06, Christian S <> wrote:
> >
> > On 12/20/06, chamila piyasena < > wrote:
> > > Hi,
> > >
> > > I'm a new member to the Erlang  community as well as to Erlang and I'm
> > still
> > > a student.  I have problems in  Dets  .
> > > how can I improve the data retrieval(minimize the time) from dets
> > files? Is
> > > there a way to use indexing ?
> > > Or should I use other database like Mnesia.
> >
> > When you ask if you should use indexing it sounds like you are seeking
> > through the dets file on a "column" other than the primary key? A.k.a
> > "tablescan".
> >
> > If that is so, then yes you should keep an index on the secondary key.
> > Dets does not have such a feature, you need to build it, mnesia has it
> > though.
> >
> >
> > Hint: Be less vague and you can probably get better help.
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20061221/60aed96d/attachment.html>


More information about the erlang-questions mailing list