• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Just finished migrating my App to mongoDB

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I had been developing a web app for quite some time. Earlier I used JPA as my persistence layer, but now I completely migrated it to mongoDB and I made a very good progress within a week of my exploration with mongoDB. I have my app completely up and running against a mongoDB database server running locally on my machine. So far the experience with mongoDB has been very good. I love the morphia library. But hope that they also soon have the possibility to map using xml files. I will be tinkering even more with my mongoDB persistence layer. I'm going to make up my mind not to look at RDBMS anymore.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is everything a String in mongoDB? Can't I use long datatype for my Id?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we have by default indexes applied on the _id attribute on a Collection?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we have by default indexes applied on the _id attribute on a Collection?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Harry wrote:Do we have by default indexes applied on the _id attribute on a Collection?


Looks like it!
 
Viktor Kubinec
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Harry wrote:Is everything a String in mongoDB? Can't I use long datatype for my Id?


No, there are more datatypes. I don't know if this is the full list, but at least what I know : String, Number, boolean and object and you can use Long datatype as your id. How do you access mongodb?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic