Cool new Free software
Cool new Free software
Posted Dec 19, 2012 15:58 UTC (Wed) by man_ls (guest, #15091)In reply to: Cool new Free software by macson_g
Parent article: Status.net service to phase out, replaced by pump.io
Good to know that there are alternatives. I have fond memories of PostgreSQL from some years ago, and MongoDB while nice has some wrinkles here and there. Still, mongo is really fast: you can do hundreds of writes per second without any optimization, while from my recollections PostgreSQL stayed closer to the 100 req/sec mark. I guess that between Moore's Law and relentless progress in PostgreSQL now it will do much better.
There are other NoSQL stores like Redis or Riak which are much faster and more scalable by nature. But their key-value nature makes the programming model much more time-consuming: you have to think about how you are going to exploit the data, not how you want to store it.
      Posted Dec 19, 2012 16:03 UTC (Wed)
                               by andresfreund (subscriber, #69562)
                              [Link] 
       
You can optionally say that you don't need that (SET synchronous_commit = off in the session or configuration) which will then only sync commits in a background process. Which gives you a data-loss window from < 1s in default settings. Note that *only* the last transactions will be lost, *no* old data can be corrupted by that. 
If you need even less guarantees you can say fsync=off. 
     
      Posted Dec 19, 2012 16:07 UTC (Wed)
                               by macson_g (guest, #12717)
                              [Link] (1 responses)
       
But there is few tricks one can do: 1) use COPY instead of INSERT, 2) loosen reliability guarantees (WAL, sync commits) in configuration, 3) define your table as UNLOGGED. 
This will bring your insertion speed close to MongoDB. And probably reliability will still be better than Mongo's. 
     
    
      Posted Dec 20, 2012 16:41 UTC (Thu)
                               by pboddie (guest, #50784)
                              [Link] 
       
     
    Cool new Free software
      
Cool new Free software
      
Cool new Free software
      
 
           