Re: [Caml-list] SQL engine in OCaml with client side cache

2012-01-29 Thread Gerd Stolpmann
Am Sonntag, den 29.01.2012, 10:56 +0100 schrieb Diego Olivier Fernandez Pons: Caml-list, I need an SQL server that a web-client can query and send the results to some JavaScript graphic package. My problem is that the bandwidth and server power are limited and paid per usage. On the

Re: [Caml-list] SQL engine in OCaml with client side cache

2012-01-29 Thread Marc Weber
Excerpts from Diego Olivier Fernandez Pons's message of Sun Jan 29 10:56:25 +0100 2012: On the other hand, the data I am working with has good properties - read only Libraries like smarty (PHP caching framework) do it this way : fun render_and_cache_id (id) let query_db_then_render = fun() -

Re: [Caml-list] SQL engine in OCaml with client side cache

2012-01-29 Thread Daniel Bünzli
Le dimanche, 29 janvier 2012 à 10:56, Diego Olivier Fernandez Pons a écrit : Therefore I thought I could add a cache on the client side, meaning an in-memory SQL database that would receive a big block of data from the server and work on it till the client writes a query that needs some

Re: [Caml-list] deriving

2012-01-29 Thread Matej Košík
On 01/29/2012 01:10 PM, Lin wrote: I have no Fedora machine at hand, but from the error message it seems to have something to do with camlp4. Do you have it installed correctly? Check if you have the camlp4 command by `which camlp4`. I am not sure what caused the problem but camlp4 was not

Re: [Caml-list] deriving

2012-01-29 Thread Adrien
Hi, Could you show the content of the META file for deriving on your fedora installation? On my computer (I'm not using fedora), a command like this one points to a proper file: % find /opt/ocaml -name META | grep -i deriving /opt/ocaml/lib/ocaml/pkg-lib/deriving-ocsigen/META Regards,

Re: [Caml-list] deriving

2012-01-29 Thread Matej Košík
On 01/29/2012 06:15 PM, Adrien wrote: Hi, Could you show the content of the META file for deriving on your fedora installation? On my computer (I'm not using fedora), a command like this one points to a proper file: % find /opt/ocaml -name META | grep -i deriving

Re: [Caml-list] SQL engine in OCaml with client side cache

2012-01-29 Thread Diego Olivier Fernandez Pons
Caml-list, [Gerd Stolpmann wrote] I think this is not possible. SQL always needs access to the complete table for executing queries (including the complete indexes). I am surprised by your comments. Many systems have two-layer data storage (massive but slow one, fast but limited one), and

Re: [Caml-list] SQL engine in OCaml with client side cache

2012-01-29 Thread Gerd Stolpmann
Am Sonntag, den 29.01.2012, 19:29 +0100 schrieb Diego Olivier Fernandez Pons: Caml-list, [Gerd Stolpmann wrote] I think this is not possible. SQL always needs access to the complete table for executing queries (including the complete indexes). Not possible in the sense of: yielding a

Re: [Caml-list] SQL engine in OCaml with client side cache

2012-01-29 Thread Diego Olivier Fernandez Pons
Caml-list, [Gerd Stolpmann wrote] The SQL server solves this by deciding on a query strategy beforehand. What ??? I thought SQL servers shipped on-the-fly optimizing compilers that would evaluate the query and use some heuristics (like table size and density) to decide in which order to