caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] SQL engine in OCaml with client side cache
@ 2012-01-29  9:56 Diego Olivier Fernandez Pons
  2012-01-29 11:15 ` Gerd Stolpmann
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Diego Olivier Fernandez Pons @ 2012-01-29  9:56 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]

    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 other hand, the data I am working with has good properties
- read only
- client always looking at the same subset of data from "different angles"
- easy to compute a subset of data the client will work on

For instance the database contains 5 years of sales of a company in all
their stores. Some clients will want to investigate all the products of a
given store, other will want to compare a single product on all the stores,
others the sales evolution per department per year, etc.

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 data
that is not available locally in which case it would request it from the
server, etc.

I haven't found anything like that ready-to-use, so I was considering
reengineering existing OCaml code (database + web) and maybe compile it to
JavaScript. I have control on the client so I can afford installing an
OCaml runtime if needed albeit impractical though.

Does anyone has an SQL engine written in OCaml ? I can only find bindings.
Also, has anyone tested the OCaml -> JavaScript on projects with
significant computation work ?

        Diego Olivier

[-- Attachment #2: Type: text/html, Size: 1829 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-01-31 15:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-29  9:56 [Caml-list] SQL engine in OCaml with client side cache Diego Olivier Fernandez Pons
2012-01-29 11:15 ` Gerd Stolpmann
2012-01-29 18:29   ` Diego Olivier Fernandez Pons
2012-01-29 20:16     ` Gerd Stolpmann
2012-01-29 23:26       ` Diego Olivier Fernandez Pons
2012-01-30  9:12         ` Gabriel Scherer
2012-01-31 15:04         ` Gerd Stolpmann
2012-01-29 11:39 ` Marc Weber
2012-01-29 13:42 ` Daniel Bünzli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).