|
Posted by comp.lang.tcl on 11/27/06 21:38
Cameron Laird wrote:
> In article <1164575063.770613.309370@l12g2000cwl.googlegroups.com>,
> Steve Ball <Steve.Ball@explain.com.au> wrote:
> .
> .
> .
> >So, a bunch of <entry> elements where the real data is in attributes.
> >This looks like a dump of a relational database to me.
> >
> >> Into this:
> >>
> >> id 1101 triviaID 233 question {Who wrote "Trilogy of
> >> Knowledge"?} answerID 1 correctAnswerID 1 answer Believer expDate
> >> 113963500
> >
> >Yup, and then you're recreating the relational data in Tcl.
> >
> >NB. XML is not the problem here - you may as well have just used CSV
> >rather than XML.
> I think this part VERY MUCH deserves repetition.
> It is indeed ... silly to serialize relational
> data into XML on the way to Tcl.
> .
> .
> .
> >Notes:
> >
> >1. This solution is single-threaded. It is an exercise for the reader
> >to have it run multi-threaded.
> >2. Attributes as Tcl lists is probably not ideal - a dict would be
> >better. However, in this case lists are necessary to represent the
> >relational data.
> I'm all in favor of dicts.
Dicts? What is a dict? Again I don't know your terminology
BTW I use XML and not CSV because I would have to rewrite too much of
the site to handle CSV instead of XML, and BTW did I mention that I
have no idea how to handle CSV via TCL in the first place, much less
XML?
I think that you may have to understand that I am not exactly on the
same learning curve with the rest of comp.lang.tcl, apparently a gaggle
of very seasoned engineers with multiple TCL experience, and I'm this
web guy that has ADD. I'm learning as best as I can, but Cameron,
please, you're making me drink from a firehose here!
Oh and BTW this is not a database relational dump. There is no
database; the server that hosts that site has no database and no
business plans to ever implement one.
Phil
>
> I don't understand the comment about threading.
> How is concurrency an issue at all?
> .
> .
> .
Navigation:
[Reply to this message]
|