in reply to Re^3: Integrated non-relational databases ?
in thread Integrated non-relational databases ?

I agree with many of the points you and the other mentioned.
What I was glad to see in Mnesia was that you just add the next server and it use it. Yes you may still need to think of tehniques to partition your data, but you don't have to worry so much what scheme of replication to do, do you do cluster/can you. From what I read you in fact can play the role of the planner of the query with your own code. In general this is hard to impossible to do in RDBMS.
I'm not saying Mnesia is best than say Mysql,potgresql ...etc. In fact I don't know how scallable Mnesia is in first place ;)


As a side question, I need to implement if I may call it "slow/lazy queries", what I mean.
A query that takes a long time to execute say from 5min to 1 hour, but doesn't take cpu and IO resources... so that the server continues to work as if there is nothing else happening.
Do you have idea how such thing can be achieved or is it doable at all with today databases
  • Comment on Re^4: Integrated non-relational databases ?

Replies are listed 'Best First'.
Re^5: Integrated non-relational databases ?
by dragonchild (Archbishop) on Sep 29, 2007 at 01:55 UTC
    The problem is that if your query takes more than 5 seconds, the snapshot of data it's looking at is out-of-date. So, you'll need to provide a solution to that problem.

    I've worked with queries that looked at millions of rows crossed with millions of rows and the longest I've ever had a query take was 15 seconds - that was ok because it was looking at archived data. Normally, queries shouldn't take more than 1 second. Taking longer usually means you've written the query wrong. Have you looked at the execution plan?


    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?