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

  • Home
  • SEARCH
  • 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 8365889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:46:24+00:00 2026-06-09T12:46:24+00:00

I’ve got an application. It writes its object graphs to Mongo. For certain collections,

  • 0

I’ve got an application. It writes its object graphs to Mongo. For certain collections, we’d like to normalise the data and mirror it onto a relational database (SQL Server or SQLite).

I was thinking the best way to do this would be by a MapReduce job on the collections. Would this be the right way? Is this possible? We’re running on Windows if that makes a difference.

Update

What I’m looking for is just general guidance about whether a MapReduce job in JavaScript is the best way to approach this. Let’s say I have an object with two fields, FirstName and LastName. When I write this to a collection, I need a row in a relational database (which has two columns FirstName and LastName).

Of course, I could write this to the SQL table in my application at the point where I write to the collection. But I thought that perhaps a better place to do it would be IN the database. This would allow me to shape the data, if needed, before writing it to the relational database.

Now that I’ve elaborated a bit, I can see a few other questions which I didn’t explicitly ask but which are pertinent. Can the JavaScript that runs the MapReduce job even access anything outside of Mongo? Is it sand-boxed? And would doing this as a MapReduce job impact write performance (I’m guessing not, but IANAE, hence the question(s)).

  • 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-09T12:46:26+00:00Added an answer on June 9, 2026 at 12:46 pm

    No, MapReduce job can’t write to an SQL database. It can’t even write to a mongo collection (other than the one specified in out option).

    Similarly, would you also attempt to write to mongodb from a mysql trigger? The idea seems bizarre to me 🙂

    So, I suggest that you do it in the application.

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

Sidebar

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
i got an object with contents of html markup in it, for example: string
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.