Menu

Cache of the objects

2004-08-26
2004-08-27
  • Nobody/Anonymous

    When I retrive a list of the objects. This objects are in the cache or not. My problem: I retrive a list of objects to view in a datagrid, but i add a new object,I do not want to recover again the list of objects. I want add datarow in cursor.ResultSet.ResultSet. It is this advisable or i recover again of the database.

    Saludos

    Vctor(Madrid - Spain)

     
    • Richard Banks

      Richard Banks - 2004-08-26

      When you save the new object it will be added to the cache.

      If you use a retrieve criteria to get objects it will be a hit on the database, as other objects may have been created by other users.

      The cache is only used when instantiating a single object.

      What you suggest (to add a row to the resultset) is possible and is quite OK as long as you don't have a multiuser environment.  If you do, then you may miss new records created by other users.  What I'm trying to say, is that this sort of decision comes down to the specific application you are writing and how you expect it to be used.

      I hope that helps

      - Richard.

       
    • Nobody/Anonymous

      Thank you

      Resolvi the problem, using a dataset(copy of the result) to connect with the form.

      Saludos

      Victor (Madrid - Spain)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.