EntropySink

Technical & Scientific => Programming => Topic started by: Mike on September 20, 2012, 04:44:33 PM

Title: Javascript database
Post by: Mike on September 20, 2012, 04:44:33 PM
http://www.taffydb.com/

Looks interesting
Title: Re: Javascript database
Post by: Steve on September 20, 2012, 04:49:08 PM
Very clean and efficient looking.
Title: Re: Javascript database
Post by: Perspective on September 20, 2012, 07:46:10 PM
Reminds me a little of Linq. I wonder if they internally create indices (or indexes for my American friends). That's tricky without knowing the workload. You don't win anything by doing a linear scan for search, but if you index every attribute and I use it for a lot of inserts and deletes it's gonna be slow.
Title: Re: Javascript database
Post by: ober on September 20, 2012, 08:32:30 PM
But....... why?  I am trying to think of a logical use-case but the only thing I can think of is some sort of client-side editor that would eventually save back to an actual database.
Title: Re: Javascript database
Post by: Mike on September 20, 2012, 08:38:47 PM
The use case I'm thinking off is an interactive page where it isn't saving the data but you still want an easy way to query information.  Also, where the data set is relatively small.  Was thinking of doing a GW2 crafting look up page with this.
Title: Re: Javascript database
Post by: Perspective on September 24, 2012, 11:34:05 AM
>Also, where the data set is relatively small.

Or the result of an initial query is small and you want to allow client-side query refinement.
Title: Re: Javascript database
Post by: micah on September 24, 2012, 01:29:30 PM
how small are you thinking when you say "relatively" small. i was thinking a good application for this would be offline browser-based apps that sync when connected to the internet, or, depending on the purpose of the app, having pre-installed data.
Title: Re: Javascript database
Post by: Mike on September 24, 2012, 01:35:47 PM
I don't know, I'd probably have to test it.  I'd also have to see what most browsers put as a memory limit for javascript.
Title: Re: Javascript database
Post by: webwhy on September 24, 2012, 01:39:38 PM
Quote
I'd also have to see what most browsers put as a memory limit for javascript.

Is there a limit?  It seems like my browser (Chrome/Webkit) is allowed to grab all of the memory it wants to use.  I'd be interested in hearing what you discover.
Title: Re: Javascript database
Post by: Mike on September 24, 2012, 02:43:23 PM
I would HOPE there is a limit but I've never tested for it.