ghbolivar / cropplanning

Automatically exported from code.google.com/p/cropplanning
0 stars 0 forks source link

Rewrite db queries to return CPS objects #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, the list view and the detail view operate completely separately
and the code involves a lot of acrobatics to translate from CPS Objects
(Crops, Plantings, etc) to the db view.

We should rewrite all of the db calls so that they only return CPS Objects,
or lists thereof.  Then we can use something like Glazed Lists
(http://publicobject.com/glazedlists/) to handle the display of the data. 
When an object is clicked upon, it's just thrown over the detail view as
is, no more db queries.

Concern:
given the speed of HSQL, turning all of those entries into objects might
actually be slower than just bouncing queries off the db.

Original issue reported on code.google.com by cropplan...@gmail.com on 18 Oct 2008 at 2:50

GoogleCodeExporter commented 8 years ago

Original comment by cropplan...@gmail.com on 18 Oct 2008 at 11:43

GoogleCodeExporter commented 8 years ago

Original comment by cropplan...@gmail.com on 18 Oct 2008 at 11:52

GoogleCodeExporter commented 8 years ago

Original comment by cropplan...@gmail.com on 18 Oct 2008 at 11:54

GoogleCodeExporter commented 8 years ago

Original comment by cropplan...@gmail.com on 10 Dec 2008 at 10:14

GoogleCodeExporter commented 8 years ago
We should look at ORM to accomplish this.  Specifically,
[http://code.google.com/p/persist/ Persist] would be a good option for 
implementing
this.  [http://www.simpleorm.org/ SimpleORM] might also work, though Persist 
seems a
bit more straightforward.

Original comment by cropplan...@gmail.com on 19 Dec 2008 at 2:29

GoogleCodeExporter commented 8 years ago
Closing this issue.  Either implemented in 0.5.5 or no longer relevant.

Original comment by cropplan...@gmail.com on 17 Feb 2013 at 1:46