Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: (OT) Perl and creating a query for MongoDB

by ovedpo15 (Pilgrim)
on Jul 30, 2019 at 18:01 UTC ( [id://11103631]=note: print w/replies, xml ) Need Help??


in reply to Re^3: (OT) Perl and creating a query for MongoDB
in thread (OT) Perl and creating a query for MongoDB

Ahh yes.. My question is how to create an aggregation query. I know that it has to do little with Perl (because I only created the report with Perl). Thought it was possible to ask it here. If questions other than Perl, are not allowed here, that's ok and sorry for that :)
  • Comment on Re^4: (OT) Perl and creating a query for MongoDB

Replies are listed 'Best First'.
Re^5: (OT) Perl and creating a query for MongoDB
by GrandFather (Saint) on Jul 30, 2019 at 21:51 UTC

    Questions with a significant Perl content are encouraged. Other questions, such as this one, are allowed but should be marked Off Topic:(OT) in the title.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
      Thanks for the explanation. Will remember for the future.
      I though about it and I will extract the reports as the are and create the wanted report with Perl. But I still not sure how to do it.
      It feels like I need to iterate through the inner array and then through the outer array.
      Can you suggest an efficient way to do this? Will update my post.

        Can you post the perl script and source data files that you used to create the report shown on you original post ? i.e.

        { "name": "test1", "all_data": [ { "sub_data": [ { "sub_name": "Test1", "sub_path": "GROUP1/Test1", "info": [ { "group": "pkgs", "values": [ "tcsh" ] }, { "group": "tcsh", "values": [ "6.13.00" ] } ] }, { "sub_name": "GROUP2", "sub_path": "GROUP2", "info": [ { "group": "pkgs", "values": [ "tcsh" ] }, { "group": "tcsh", "values": [ "6.13.00" ] } ] }, ], "all_data_name": "ROOT", "all_data_path": "/PATH/TO/ROOT" } ], "username": "erwerwcsd", "timestamp": "1564475903" }
        poj

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-16 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found