Yun - MongoDB - Apio

Hi guys

We need to use MongoDB in an Arduino Yun for an application based on our framework (Apio www.apio.cc). We've searched in the official Arduino packages but there isn't the MongoDB one.

Searching on the web we haven't found any tutorials about that, so we'd like to know if those tutorials are missing because it is simple to compile it or if there are problems with that, and in case, what those problems are.

That you very much for the help.

MongoDB is not available for the Arduino Yun so you can't find it in the official Arduino packages list.

Arduino Yun uses a MIPS microprocessor so you can try to download the source code of MongoDB and cross-compile it for the MIPS architecture. I don't know if someone tried to do that so you will probably have to check if it is feasible or not.

Did you need MongoDB client or MongoDB server at Yun?

@Angelo9999 Ok thank you very much, we're already trying to do that. If someone has other suggestions we're here.

As soon as we create the package we'll upload it on github and we'll let you know.

Stay tuned.

@sonnyyu we need both

Apio: As soon as we create the package we'll upload it on github and we'll let you know.

Stay tuned.

Nice! ;)

I got MongoDB client (python) work a while ago, but face problem MongoDB server.

  1. Mongo is wrote very x86 oriented ways, It assumes a little endian processor, AR9331 is big endian processor. The source is needed modify.
  2. Mongo is wrote by C++, and not friendly to Embedded Linux like openwrt.
  3. Mongo is DB in RAM type db, It love a lot of memory. Yun only has 64MB, left free memory is 22MB.

My major concerned is MongoDB can only saturate all cores on a multi-core CPU for read operations, but for write operations and map-reduce MongoDB can only utilize a single core, which kills my multi-core ARM board.

You are luck on single core. ;)

@sonnyyu Thanks for your useful suggestions. We're trying anyway because we want to use it with our framework for something special.. we have a guy that love to solve those type of problem...

we'll let you know. :)

We're going to cross-compile mongoDB for MIPS architecture.

We have found a repository for debian called emdebian.org that has got all the tools for do it, but the repo is under construction and they haven't got a public key yet, so we''re waiting for them. They told us the public key we'll be ready in few days.

Stay tuned..

Apio: @sonnyyu Thanks for your useful suggestions. We're trying anyway because we want to use it with our framework for something special.. we have a guy that love to solve those type of problem...

"When the only tool you know to use is a hammer, everything looks like a nail...." :confused:

@PCWorxLA

ahahahahahah yeah, that's true.

We have a backup solution that we can use to do what we're planning, but we want to try the cross-compile solution first just because we'll be a better solution for us and for the community ;)

Apio: @PCWorxLA

ahahahahahah yeah, that's true.

We have a backup solution that we can use to do what we're planning, but we want to try the cross-compile solution first just because we'll be a better solution for us and for the community ;)

"If the current hammer doesn't work, don't worry, just get a bigger hammer..." :grin:

Ralf 8)