PhilipJ has asked for the wisdom of the Perl Monks concerning the following question:
######################################!usr/bin/perl use MongoDB; use MongoDB::Database; use MongoDB::OID; my $conn = MongoDB::Connection->new; my $db = $conn->test; my $users = $db->testlogwiki; $users->insert ( { "product" => "WooHoo", "errcode" => "WM2001_89873", "solution1" => "Hit the computer.", "line_text" => "Inserted in Perl too" } );
That's not the order I inserted! How do I fix this?"_id" : ObjectId("4fc62c2900ece6040c000000"), "solution1" : "Hit the computer.", "product" : "WooHoo", "errcode" : "WM2001_89873", "line_text" : "Inserted in Perl too"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MongoDB insert order
by BrowserUk (Patriarch) on May 30, 2012 at 15:10 UTC | |
|
Re: MongoDB insert order
by derby (Abbot) on May 30, 2012 at 14:59 UTC | |
by PhilipJ (Initiate) on May 30, 2012 at 15:07 UTC | |
by derby (Abbot) on May 30, 2012 at 16:39 UTC | |
|
Re: MongoDB insert order
by choroba (Cardinal) on May 30, 2012 at 15:01 UTC | |
by PhilipJ (Initiate) on May 30, 2012 at 15:03 UTC |