[nodejs] Re: Architecture of a scalable push notification service

2012-12-19 Thread christkv
As long as your data fits in memory your going to see good performance on MongoDB as the memory mapped architecture means recently accessed or written items are going to be in memory. I'm biased of course since I work for 10gen but I'm also a big fan of keeping it simple so if you need the

Re: [nodejs] noSQL vs. traditional SQL for big node.js auth

2012-09-28 Thread christkv
I would say it depends. If the content you are planning to store is very varied in shape (number of fields, structure) mongodb is is a very suitable candidate (shutterfly uses it to store all the metadata for uploaded photos which varies a lot depending on the camera that took the photo). If on

[nodejs] windows native extensions

2012-09-25 Thread christkv
Hi I'm wondering how people are dealing with windows native extensions. Are you packaging the compiled extensions with the npm package ? One for 64 bit and one for 32 bit ? Also process.platform for the 64bit windows version reports win32 Trying to bring the c++ parser for the mongodb

Re: [nodejs] windows native extensions

2012-09-25 Thread christkv
/windowseventlogjs/issues/3 maybe not two packages, but I might have one with two binaries and choose at runtime what to use. It will make the package bigger but this is a really small binary 2012/9/25 christkv chri...@gmail.com javascript: Hi I'm wondering how people are dealing with windows native

[nodejs] Re: psutil library for node

2012-09-08 Thread christkv
platforms, that write hundred-lines #ifdefs. If there was a set of *.cc + *.h files, it should be linked well. пятница, 7 сентября 2012 г., 11:55:57 UTC+4 пользователь christkv написал: Hi Oleg any help would be appreciated as none of the suggestions currently seems to work. It build

[nodejs] Re: psutil library for node

2012-09-07 Thread christkv
ok cool I'll go through all the stuff with a comb. wonder why g++ is so picky while clang++ is not. On Thursday, September 6, 2012 11:37:48 PM UTC+2, mscdex wrote: On Sep 6, 5:20 pm, Paddy Byers paddy.by...@gmail.com wrote: If you disambiguate all references to Handle as v8::Handle then it

[nodejs] Re: psutil library for node

2012-09-07 Thread christkv
in www, but this is a good one: http://lists.gnu.org/archive/html/openexr-devel/2003-10/msg00035.html Maybe clang linker is a bit entelligent, but previously I think that it use standard ld. пятница, 7 сентября 2012 г., 11:15:46 UTC+4 пользователь christkv написал: ok cool I'll go through all

Re: [nodejs] psutil library for node

2012-09-07 Thread christkv
That does not help either. I've put a single worker version here https://github.com/christkv/node-psutil/tree/no_using_namespace and it builds with g++ but does fails when running the virtual_memory_test as indicated above. On Friday, September 7, 2012 10:05:40 AM UTC+2, Marcel wrote: Never

[nodejs] psutil library for node

2012-09-06 Thread christkv
I'm slowly working on rewriting the python lib psutil for node but I'm running into a problem on linux. It builds perfectly with clang++ but fails to link correctly with g++. The code is here https://github.com/christkv/node-psutil I would really really appreciate it if anyone could shed some

Re: [nodejs] node-mongodb-native problems with sort

2012-07-16 Thread christkv
sort seems to work fine. the following code works both under the current 1.0.2 and next 1.1 release /** * @ignore */ exports.shouldCorrectlySortDates = function (test) { var collection = client.collection('shouldCorrectlySortDates'); var numberOfInserts = 5; var id =

[nodejs] Re: ANN: Node driver 1.0.1 release (recommended upgrade)

2012-05-12 Thread christkv
, 2012 at 11:37 AM, christkv chris...@gmail.com (mailto:chris...@gmail.com) wrote: 1.0.1 - Passing back getLastError object as 3rd parameter on findAndModify command. - Fixed a bunch of performance regressions in objectId and cursor. - Fixed issue #600 allowing

[nodejs] ANN: Node driver 1.0.1 release (recommended upgrade)

2012-05-11 Thread christkv
1.0.1 - Passing back getLastError object as 3rd parameter on findAndModify command. - Fixed a bunch of performance regressions in objectId and cursor. - Fixed issue #600 allowing for single document delete to be passed in remove command. -- Job Board: http://jobs.nodejs.org/

[nodejs] Re: I am thinking about saving the usual data of the application on an matrix to increase performance instead of database, what do you think?

2012-04-18 Thread christkv
If you have a lot of data traversal will look the eventloop. You might want to run the lookups outside your web process or it will limit your concurrency. I suggest a child process to do the lookups against if you wish to keep the data in memory. On Apr 18, 9:31 pm, Gil LB

[nodejs] Re: Unsigned integers and Int64 in node.js

2012-04-18 Thread christkv
The Long class from https://github.com/mongodb/js-bson/blob/master/lib/bson/long.js might be helpful as well it's from the google closure lib On Apr 18, 9:26 pm, Chad Retz chad.r...@gmail.com wrote: I had the same problem with a binary protocol. I just gave the data back as a big numeric

[nodejs] Re: Should a binding module support multiple Node versions

2012-04-11 Thread christkv
there are still tons off people using 0.4 which is somewhat annoying and I assume it will get a lot worse as 0.8 comes out. I plan on only supporting current version + last. so once 0.8 is out the mongodb driver will stop support for 0.4.X actively. On Apr 11, 5:12 am, Nathan Rajlich

[nodejs] Re: nodejs throughput verses custom server, scaling question to someone with experience.

2012-04-10 Thread christkv
Use the raw mongodb driver and the c++ bson parser I suggest trying native_parser set to true to avoid any gc overhead On Apr 10, 10:28 pm, timp timprepsc...@gmail.com wrote: or BSON, sorry. I assume it must parse the db results, and then it must JSON them into the result. On Tuesday,

[nodejs] Re: api service with node and mongo db

2012-03-23 Thread christkv
The first place to learn a bit more about mongodb is here http://www.10gen.com/presentations I would spend an hour or two watching some of the presentations. You might find someone who has a similar app like you are looking to build or just general information about mongodb. On Mar 23, 10:04