Express on Node - what data store?

I'm doing my first project in node/express.

I'm looking to implement a data store and noticed that express is using redis as a session store. Does this mean that express installs redis by default? The reason I ask is that I pondering whether to install mongodb but if redis is already there to use, I'll go with that.

New to node and express so any advice much appreciated.

-------------Problems Reply------------

Last time I checked, express used a built-in in-memory data store by default and connect-redis was a separate package.

express installs neither redis (the database executable) nor node-redis (redis API binding for node) nor connect-redis (session store for connect and express that uses redis).

redis is a very simple database compared to mongodb. Mongodb is a full document-oriented database and redis is just an in-memory key-value store.

Also, express relies on connect for most stuff including session management, and sessions are in fact provided by connect.

The reason I ask is that I pondering whether to install mongodb but if redis is already there to use, I'll go with that.

Question you should rather ask is if redis would be the right data store for your stuff. Redis doesn't support for example querying which might be crucial for you and your data retrieval, so if that's one of your requirements you should go with mongodb.

Category:mongodb Views:0 Time:2011-11-10

Related post

  • Is this right? A jQuery bug that erases the data store? 2009-06-29

    Fire up your firebug console and try this out. Compare this: $('body').data('x',1); $(thisx).remove(); console.log($('body').data('x')); to this: $('body').data('x',1); $(this.x).remove(); console.log($('body').data('x')); Notice the difference? If t

  • Distributed Key-Value Data Store with Offline Access (Static Partitioning) 2009-07-15

    Need to be able to set server(s) that replicate all information, as a master data store that has all the data. Also need servers that specifically store/replicate certain data, available in local LANs, so that when the internet connection goes down,

  • Regular expression to match a date range 2009-09-22

    Does anyone have any ideas on if/how one could create a regular expression to match a date in any given period? Two examples: 23/11/2008 - 12/04/2010 //The expression would evaluate whether 16/04/2010 was in this range, and return false. //The expres

  • ExtJS data store for tree 2009-11-06

    I've got a basic ExtJS question, which I can't seem to resolve based on reading the docs and searching. Currently I have a TreePanel that loads JSON directly from a URL. I'm trying to separate the data from the view, so that I can also use that data

  • Is Cassandra suitable to use as a primary data store? 2009-12-04

    I'm evaluating a storage platform for an upcoming project and keep coming back to Cassandra. For this project loosing any amount of data is unacceptable. So far we've used a relational database (Microsoft SQL Server), but the data is so varied and la

  • Embedded non-relational (nosql) data store 2010-01-17

    I'm thinking about using/implementing some kind of an embedded key-value (or document) store for my Windows desktop application. I want to be able to store various types of data (GPS tracks would be one example) and of course be able to query this da

  • What scalability problems have you encountered using a NoSQL data store? 2010-02-17

    NoSQL refers to non-relational data stores that break with the history of relational databases and ACID guarantees. Popular open source NoSQL data stores include: Cassandra (tabular, written in Java, used by Cisco, WebEx, Digg, Facebook, IBM, Mahalo,

  • What is the best way to map Java objects to the Cassandra data store? 2010-07-01

    I'm getting started with Cassandra, and have been using the Hector Java library, which seems to be the most popular at the moment. I'm trying to figure out how best to expose the data store to my Java code, and am trying to do something similar to th

  • Python - Regular Expression Wildcards from Socket data? 2010-08-31

    I have a question regarding regular expressions in Python. The expressions are composed of data that would be read from a server, connected via socket. I'm trying to use and read wildcards in these expressions. Example: Let's say I run a chat server.

  • Which data store for a management service like IIS 2011-04-08

    I have a C# Windows service which manages some stuff for my server application. This is not the main application, but a helper process used to control my actual application. The user connects to this application via WCF using a WinForms application.

  • How do I keep my QAbstractTableModel in sync with my data store? 2011-05-03

    In my app, I have a class for keeping a list of items: class Database : public QObject { Q_OBJECT public: Database(QObject *parent, const QString &name); const Entry& item(int idx) const { Q_ASSERT(idx < itemCount()); return

  • Sencha Touch: Load Xml data from Data Store 2011-10-18

    I am having a difficult time trying to access xml nodes that are not part of the record. I would like to get the Success and Price node values. Thanks! An example xml would look like this <Response> <Success>true</Success> <Docum

  • How to render many ExtJS trees using a single data store 2012-03-07

    First of all, I am novice in ExtJS I am working on Ext 4 Tree since few days. The requirement is such that I want to display 3-4 representation of same tree at the same time. I want to do this using single data store. Tree 1 will show all nodes witho

  • Good data store for millions of events? 2012-03-30

    We have a number of systems that daily generate a total of around 5M events. Currently we are saving these for around 10 days totaling around 40-50M events. Currently we're using an RDBMS as the persistance layer with a web-GUI slapped onto it, but w

  • Regular Expression to match valid dates 2008-09-09

    I'm trying to write a regular expression that validates a date. The regex needs to match the following M/D/YYYY MM/DD/YYYY Single digit months can start with a leading zero (eg: 03/12/2008) Single digit days can start with a leading zero (eg: 3/02/20

  • Data Store for a Mac/iPhone Hybrid App 2009-01-14

    I've been doing iPhone development for the last 5 months or so, and have been using Gus Mueller's FMDB for database interaction. My next project will have both a Mac and an iPhone application, and they will share data between them, although in the en

  • When is an NSPersistentDocument's data store moved to final save location? 2009-01-16

    Following the advice in the Core Data Programming Guide's Core Data Performance page regarding storage of BLOBs, I've chosen to store binary data for my NSPersistenDocument-based app (Leopard-only, if that makes a difference) in an external file (sep

  • Best client-side data store for iPhone web app? 2009-01-28

    I am building a web app targeting the iPhone. It is similar to a To Do list. I need the application to be able to work offline, i.e., it should allow the user to add/edit/delete entries when there is no connection to the server, which will later get

  •, Javascript Arrays and Ext.grid.ColumnModel 2009-04-02

    I am using to call a PHP script which returns a JSON response with some metadata about fields that will be used in a query (unique name, table, field, and user-friendly title). I then loop through each of the objects, p

Copyright (C), All Rights Reserved.

processed in 0.198 (s). 11 q(s)