|
Sometime ago I started doing a custom stats analyzer
and the idea was to not load the full log (it was huge) but update the stats as I was reading the log. I registered <individual stats analyzers> within the analyzer so for every line read each <individual analyzer> did its own calculation (some kind of aggregation of data) so they didn't consume to much memory either. I think you can do something similar. And add as many analyzers as different criterias you have. For example you can have one analyzer that reads the transaction id and keeps it in a dictionary as long as all the different types of messages are found ... all depends on what's the output you want to get (like missing messages, repeated messages, ...) Hope you get the idea too. Daniel Kersten wrote: PS: So, yes, they are readonly. 2008/12/15 Daniel Kersten <[email protected]>:Ok, I'll give a few more details as to what I'm doing.Basically, I have a little python app which analyses log files (these log files are large, I have one here thats incomplete and is already 200MB). Each entry contains a number of fields which I package into convenient little objects. The objects represent "messages" and the fields are addresses of those messages (transaction id's etc) and I need to verify that if I get message of type A that I then receive a message of type B with matching transaction id's and address X in range Y... you get the idea, I hope. I could use sqlite for this (and that might even be a good solution), though I'd like to keep it in plain python, if possible, since its meant to just be a little script which I can run over the log files on whatever machine it happens to be on, though I may settle for using sqlite if theres no alternative. 2008/12/15 Juan Hernandez Gomez <[email protected]>: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Python Ireland" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.ie/group/pythonireland?hl=en -~----------~----~----~----~------~----~------~--~--- |
- Need advice searching large list of objects Daniel Kersten
- Re: Need advice searching large list of objects Juan Hernandez Gomez
- Re: Need advice searching large list of obje... Daniel Kersten
- Re: Need advice searching large list of ... Daniel Kersten
- Re: Need advice searching large list... Padraig Kitterick
- Re: Need advice searching large list... Juan Hernandez Gomez
- Re: Need advice searching large... Daniel Kersten
- Re: Need advice searching l... Daniel Kersten
- Re: Need advice searching large list of ... Micheal Wang
- Re: Need advice searching large list of objects Steve McConville
