Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102838

Re: Suggested datatype for getting latest information from log files

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Newsgroups comp.lang.python
Subject Re: Suggested datatype for getting latest information from log files
Date 2016-02-11 20:19 -0500
Organization IISS Elusive Unicorn
Message-ID <mailman.64.1455239954.22075.python-list@python.org> (permalink)
References <621f72dc-ad32-48e8-ad37-a2e7eb2d4bd8@googlegroups.com>

Show all headers | View raw


On Thu, 11 Feb 2016 10:07:21 -0800 (PST), ltomassmail@gmail.com declaimed
the following:

>
>timeStamp,name,marblesHeld,timeNow,timeSinceLastEaten
>
	As mentioned, what is the difference between "timeStamp" and "timeNow"?

	non-sequitur: are they eating marbles? Otherwise the "marblesHeld" and
"timeSinceLastEaten" seems unrelated.

>
>I thought a dictionary would be a good idea because of the key restrictions ensuring no duplicates, so the data would always update - However because they are unordered and I need to do some more processing on the data afterwards I'm having trouble.
>
	Off hand -- my first thought, given the nature of the data -- would be
to just stuff it all into a database, and try to come up with database
queries to produce the needed order/subset information.

>For example lets assume that once I have the most upto date values from dave,steve,jenny I wanted to do timeNow - timeSinceLastEaten to get an interval then write all the info together to some other database. Crucially order is important here.
>
	(very pseudo SQL... I'm not even sure the aggregates work that way)
	select name, marblesLeft, timeNow - timeSinceLastEaten
	group by name having max(timeStamp)
	order by timeStamp

-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Suggested datatype for getting latest information from log files ltomassmail@gmail.com - 2016-02-11 10:07 -0800
  Re: Suggested datatype for getting latest information from log files jmp <jeanmichel@sequans.com> - 2016-02-11 19:16 +0100
    Re: Suggested datatype for getting latest information from log files ltomassmail@gmail.com - 2016-02-11 10:25 -0800
    Re: Suggested datatype for getting latest information from log files ltomassmail@gmail.com - 2016-02-11 10:31 -0800
  Re: Suggested datatype for getting latest information from log files "Martin A. Brown" <martin@linux-ip.net> - 2016-02-11 10:58 -0800
  Re: Suggested datatype for getting latest information from log files Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-02-11 20:19 -0500

csiph-web