This seems to me to be more a question of program architecture than of implementation. Being about 2 years of full time perl programming in, I try to think about my data structures first before I design the code. Given that you are taking input from planes, ships, earthquakes, weather, etc. the DATA MODEL that will be the core of your design - and persistent data store should be a single table of all of the common factors - lat, long, time - and some "type" that uniquely specifies the special rendering of that item. KISS! Two things come up here - this is a single table - probably 2-D. And you can implement the VIEW as a set of queries on this table (row by row?) - with specific routines to render the different types. I am struggling to think of a better conceptual way to do this than: SELECT name, type FROM global_data WHERE lat = 45% # ie iterate row by row AND long = 15% AND time < 28 days SORT BY time DESCENDING into two arrays @event_name = []; @event_type = []; ... err and just display item '0' from the array (you can ony render the top / most recent). Icons, colours etc can be chosen to reflect you desired view. Then you can build filters that get / scrape data to load the table and that display data according to its type. So - even if you did not have any SQL experience, I think that this would be the first port of call to help Structure your Query. And then I would bear in mind that this needs (i) One well designed table (ii) No transactions, not performance limiting, no indexes And, of course, great DBI implementations and MySQL for PCs, Linux, etc, etc.

In reply to Re: More than one way to skin an architecture by Anonymous Monk
in thread More than one way to skin an architecture by mcoblentz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.