<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="sans-serif">Hi,<br>
      <br>
      You could assign a timestamp to every record you create in the
      database.<br>
      When you click on a button, you only have to read those records
      since a certain timestamp, which is exactly the timestamp of the
      last time you pressed that button.<br>
      <br>
      Another similar concept would be assigning version numbers to
      records: everytime you store information in the database, you have
      a version number associated to it. Please look for STM (software
      transactional memory) for more information about this. You can
      implement a deadly simple versioning policy simply employing a
      SERIAL datatype and making sure that everything happens in a
      transactional scope.<br>
      <br>
      The advantage of STM over timestamps is that timestamps maybe not
      be convenient in certain scenarios, due to inaccuracy inherent to
      time measurements (leap seconds) , time zones and daytime savings.<br>
      <br>
      I hope it helps <br>
      <br>
    </font>
    <pre class="moz-signature" cols="72">Richard Gomes
<a class="moz-txt-link-freetext" href="http://www.jquantlib.org/index.php/User:RichardGomes">http://www.jquantlib.org/index.php/User:RichardGomes</a>
twitter: frgomes

JQuantLib is a library for Quantitative Finance written in Java.
<a class="moz-txt-link-freetext" href="http://www.jquantlib.com/">http://www.jquantlib.com/</a>
twitter: jquantlib
</pre>
    <br>
    On 09/04/11 21:36, vikashvikky wrote:
    <blockquote cite="mid:31360857.post@talk.nabble.com" type="cite">
      <pre wrap="">
Hi frnds,

        I am using Postgis as my backend for my project along with geoserver
and openlayers. I have a table in my DB which gets filled up very
frequently.  Now when a user gets connected to a server , he can see the map
with all the markers whose points are in the DB. Imagine the table keeps on
filling up and there is no relation between user viewing the map and tables
getting filled by values. Now suppose after some time when user clicks on
certain button on the page, he has to see the map with markers of all the
values present in the DB(along with new points inserted in the table since
last time he clicked that button). This task can be made simple by making
that button as submit button, but when the user clicks it, it reads the
entire DB again(reloads the page) along with old points and projects on the
map, instead of reading only the new points. This method is not at all good
when I have 10000 points already in DB and only say 5 points getting added
in the meantime. In this case it reads all the 10005 points instead of only
5 points. 

So can anybody give me a solution on how to retrieve only the new points,
still projecting all the points present in DB. To my knowledge Ajax can be
used to do the same(which doesnt need reloading of the page) but I want a
clear explanation of how to carry this work using postgis and geoserver. Are
there any special functions which can handle this?? If not, what is the
better way to do this?

Thanking you in advance.  
</pre>
    </blockquote>
  </body>
</html>