• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where did my data go?

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm surprised to see that the data on my mongoDB database simply got lost for whatever reason. A week ago I inserted the data using the mongo javascript console. Today when I started my application I was surprised to see that the web page was empty. Then had a look at the mongoDB database. The Collection exists but it did not have any data in it. What could be the reason for this? Any idea?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Harry wrote:I'm surprised to see that the data on my mongoDB database simply got lost for whatever reason. A week ago I inserted the data using the mongo javascript console. Today when I started my application I was surprised to see that the web page was empty. Then had a look at the mongoDB database. The Collection exists but it did not have any data in it. What could be the reason for this? Any idea?


I know this sounds stupid or that I am joking. But this past week I had something "similar" happening, not with MongoDB but with my JavaScript code. And in the end for me it was that I wasn't looking at the right file. Meaning I had two copies of it and I was using the wrong one. So maybe you are looking at the wrong database? That you have two sets of database files?

Or, last week were you using all the data in MongoDB "in memory" and when you stopped the db it went away not actually persisted permanently. Not sure if MongoDB does that, but a guess on my part.

Good Luck.

Maybe the data decided to go out to see a movie or go shopping?

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic