Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: MongoDB insert order

by derby (Abbot)
on May 30, 2012 at 16:39 UTC ( #973337=note: print w/ replies, xml ) Need Help??


in reply to Re^2: MongoDB insert order
in thread MongoDB insert order

Hmmm ... well ... it's not as easy as you think. It would mean that perl and mongo would share the same or similar associative array implementations. Even if they did, then your approach would never work 100% since perl does not even promise the key order will be the same in different processes.

Did you mean "String *output* from find"? If so, you're probably better of converting the JSON returned from the find into a true JS object and manipulating it that way instead of doing any string manipulation on the results.

-derby


Comment on Re^3: MongoDB insert order

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973337]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2015-05-22 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (457 votes), past polls