- Feb 8, 2004
- 12,604
- 15
- 81
I have no idea about databases...
What I want to do is store a username and password for each user for my web application. Also I want to store what they ate on a certain day and this will need to be updated each day but without overwriting any data, for example it should keep what the user ate yesterday so they can look back, I thought storing the food data in a List object and serializing it then stuffing it in a column might work. Don't know how else I would do that.
Im tinkering and researching how to use MySQL right now, the more I tinker and read the more it seems like a legacy PITA technology to use.
Should I use one of the newer NoSQL databases? This looks rather nice:
http://www.mkyong.com/mongodb/java-mongodb-hello-world-example/
I like how its all java code. So which is easier to use? Which will support storing an object better? MySQL and relational databases or MongoDB and its equivalents? For a complete beginner remember, this isnt an enterprise class application or anything!
What I want to do is store a username and password for each user for my web application. Also I want to store what they ate on a certain day and this will need to be updated each day but without overwriting any data, for example it should keep what the user ate yesterday so they can look back, I thought storing the food data in a List object and serializing it then stuffing it in a column might work. Don't know how else I would do that.
Im tinkering and researching how to use MySQL right now, the more I tinker and read the more it seems like a legacy PITA technology to use.
Should I use one of the newer NoSQL databases? This looks rather nice:
http://www.mkyong.com/mongodb/java-mongodb-hello-world-example/
I like how its all java code. So which is easier to use? Which will support storing an object better? MySQL and relational databases or MongoDB and its equivalents? For a complete beginner remember, this isnt an enterprise class application or anything!