Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7266

Re: Best way to create hash of hashes

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.ruby
Subject Re: Best way to create hash of hashes
Date Sat, 25 Jun 2016 14:19:25 +0200
Lines 20
Message-ID <dt7b6eFcp4rU1@mid.individual.net> (permalink)
References <f0940c4f-7a05-47b1-8fb9-44b0537f69ad@googlegroups.com> <dt73veFbbbkU1@mid.individual.net> <13873e93-3db4-47b8-83ad-35fa19e6d70f@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net KvymW/SPT3wHSzNSOQQJgABBbuiAokMxpVZuCKGH3NP3y1xA8=
Cancel-Lock sha1:iXswj/Otj4acbtuqTbgVXoHf1Dw=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0
In-Reply-To <13873e93-3db4-47b8-83ad-35fa19e6d70f@googlegroups.com>
Xref csiph.com comp.lang.ruby:7266

Show key headers only | View raw


On 25.06.2016 12:47, Sayth Renshaw wrote:

> Is there a particular benefit of one over the other? I want to be
> able  to keep the relation between ids and descendant nodes and then put this
> into a database, is one more suitable than the other?

Of course.  But it depends on the usage.  You need to make up your mind 
how you want to go about things.  Since we do not know what database you 
want to put that into, how the schema looks (if it has one), what the 
source of data is and all the other circumstances, the only one who can 
realistically answer that question at the current point in time is you.

Kind regards

	robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Best way to create hash of hashes Sayth Renshaw <flebber.crue@gmail.com> - 2016-06-24 18:50 -0700
  Re: Best way to create hash of hashes Robert Klemme <shortcutter@googlemail.com> - 2016-06-25 12:16 +0200
    Re: Best way to create hash of hashes Sayth Renshaw <flebber.crue@gmail.com> - 2016-06-25 03:47 -0700
      Re: Best way to create hash of hashes Robert Klemme <shortcutter@googlemail.com> - 2016-06-25 14:19 +0200
        Re: Best way to create hash of hashes Sayth Renshaw <flebber.crue@gmail.com> - 2016-06-25 08:27 -0700
          Re: Best way to create hash of hashes Robert Klemme <shortcutter@googlemail.com> - 2016-06-26 00:26 +0200

csiph-web