Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8211947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:35:58+00:00 2026-06-07T10:35:58+00:00

I’m just looking to play around with NOSQL and Node.js by re-writing a very

  • 0

I’m just looking to play around with NOSQL and Node.js by re-writing a very simple MySQL and PHP app so students can leave comments to professors:

Table: Prof
Columns: id, first, last, university, department

Table: Comments
Columns: id, user_id, likes, data

The relationship is basically a Professor has many Comments and a Comment belongs to one Professor.

I think the CouchDB/JSON version would look like this:

{ "Profs" : [{
  "Comments" : [ {"data" : "comment1", "likes" : 42 } , { "data" : "comment2", "likes" : 1} ],
 "first" : "Carlos",
 "last" : "Marx",
 "university" : "some university",
 "department" : "math"
}, {...another prof with comments...}], 
 }

My first question is, is there a tool or script I can run to import all of my data into something CouchDB can work? If not, what would you recommend? I can export it to .sql and .cvs from phpmyadmin.

My second question is did I correctly structure my data in JSON?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:35:59+00:00Added an answer on June 7, 2026 at 10:35 am

    You really don’t just export a MySQL database to CouchDB or any other NoSQL database. They are different paradigms and require changing the way you think about how your data is stored. There are excellent use cases for both relational and document databases, and while there is a lot of overlap, they both excel at different things.

    With NoSQL databases, it is very important to understand how your data is going to be used. How data is written and used by your application and if data is frequently updated all have very important effects on how you should design your documents. In your example for instance. Can you edit comments? How are comments viewed? Do you always show all of them or do you want the results to be paged? How frequently are comments added? Can they be removed? Without knowing the answers to some of these questions, I can’t say for certain whether CouchDB is even the right NoSQL solution for the problem!

    I’m sorry that this is sort of a non-direct answer to your question, but approaching a migration from a relational database to a NoSQL solution as a simple map from tables to collections is a recipe for failure. Once you have put the time into designing how your documents should look in CouchDB, the data will have to go through a transformation process. That can take many shapes. You could write an application that can read from MySQL and write to CouchDB or you can export to some other format and have a script import that. There is no magic button that will take your MySQL database and turn it into a Couch database, and if there is, it really should not exist due to the issues mentioned above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
I am writing an app with both english and french support. The app requests
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am writing an app for my school newspaper, which is run completely online
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.