On Sep 12, 6:21 am, Robert Luo <robort...@gmail.com> wrote:
> Two more questions:
> 3. In datalog.database , it is required that every tuple must has
> exactly same field as in database define, is that possible to just
> define some necessary fields, and tuples appended can have additional
> optional fields?
> 4. What is a magic transformation? I googled the term, but could not
> find a comprehensive article for it.
>
> For example, I have a one-to-many relation:
> room -> can contains 1..n players
> the player reads: {:name :room-id :seat-number}
> The room has no other property, just a container of several players, I
> think I do not need a relation named room to avoid duplication, but
> how can build a work plan to get all the rooms? like that: {:room-
> id :players}


I don't know about the first two (where did you see a reference to
'magic transformation?), in this email but the room example can be
solved like this (see the gist here http://gist.github.com/185908)

You do not need another relation to avoid duplication.   The basic
thing is that you'd address this in your rules rather
than in your work plan.

To address your first posts questions,  the memory comsumption is
pretty good since the information is stored using standard clojure
datastructures.  Profiling datalog programs is no different than
profiling clojure programs.  I haven't seen it to be a problem, but
I'm not using it in performance critical applications.

The best document about the query language is the example code in the
distribution.  You can also read the source (I know, that's a terrible
answer).  I've been working on some documentation for it (and if I'm
lucky I'll be presenting about Datalog at Codemash 2010), but right
now there isn't a whole lot out there.  Do you have specific questions
about the query language (I'll try to answer them)?

HTH.

-jbs
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to