News for hackers. Stuff that matters.
Re:Using C for a specialized data store by saulkw on Wednesday March 07, 2012 @05:21AM (#3674992)
We were looking at that (as well as riak) but processing the data would require pulling all the data into PHP. I guess you could do the processing in C but it's then just as easy to store it there as well.
Re:Using C for a specialized data store by Mikushi on Wednesday March 07, 2012 @05:57AM (#3675043)
Have you looked into the LUA scripting option for Redis? Allows for some processing to happen on the server side, and it's quite powerful.
Re:Using C for a specialized data store by saulkw on Wednesday March 07, 2012 @06:10AM (#3675066)
That sounds like a good option. Thanks, will note it.
Re:Using C for a specialized data store by nknight on Wednesday March 07, 2012 @05:58AM (#3675048)
I'm not clear why you're worried about that. Is it the pulling, or the processing?

The pulling shouldn't be an issue -- I don't know about PHP, but in pure Python, I can pull an arbitrary 10MB string from Redis in ~85-90ms. With hiredis (C extension), that falls to about 47ms.

I can't speak to processing, since I don't know exactly what transformations you're performing.

Re:Using C for a specialized data store by saulkw on Wednesday March 07, 2012 @06:03AM (#3675055)
It's more the iteration of each pixel and it's neighbor (of which there are 8) making it around 9.6 million iterations.

We will probably head towards redis in the future when precise backups are essential. Undecided what will do this processing though.

Re:Using C for a specialized data store by nivertech on Wednesday March 07, 2012 @06:39AM (#3675104)
We built GPU-accelerated NoSQL datastore. using it, this can be accelerated 100x, given you switch to binary pixel format.
Re:Using C for a specialized data store by fsaintjacques on Wednesday March 07, 2012 @08:29AM (#3675371)
Why would you use a GPU-accelerated storage when latency is the main goal?
Re:Using C for a specialized data store by nivertech on Friday March 09, 2012 @12:06PM (#3684871)
GPU do not accelerate raw storage retrieval, but processing, like queries and map reduce.

Use APU / HPU, if PCIe latency is a problem.

I understood that they running something like convolution (I.e, each pixel calculated from surrounding pixels) - this will be fast using OpenCL model).