You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Øyvind Harboe (JIRA)" <de...@cayenne.apache.org> on 2008/06/20 15:53:52 UTC

[jira] Created: (CAY-1075) Paged queries should not require memory proportional to query list length

Paged queries should not require memory proportional to query list length
-------------------------------------------------------------------------

                 Key: CAY-1075
                 URL: https://issues.apache.org/cayenne/browse/CAY-1075
             Project: Cayenne
          Issue Type: Improvement
          Components: Cayenne Core Library
    Affects Versions: 3.0
            Reporter: Øyvind Harboe
            Assignee: Andrus Adamchik


I'm working on a version of paged queries that uses WeakHashMap for the pages. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAY-1075) Paged queries should not require memory proportional to query list length

Posted by "Øyvind Harboe (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Øyvind Harboe updated CAY-1075:
-------------------------------

    Attachment: LinearList.java

I'm thinking that it is better to leave paged queries as-is and introduce a new class such as the attached one.

These lists can be optimized for some application specific access pattern.

Instead of:

context.performQuery(query);

the user would use:

new LinearList(ctxt, query);

Thoughts?


> Paged queries should not require memory proportional to query list length
> -------------------------------------------------------------------------
>
>                 Key: CAY-1075
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1075
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Øyvind Harboe
>            Assignee: Andrus Adamchik
>         Attachments: IncrementalFaultList.java, LinearList.java
>
>
> I'm working on a version of paged queries that uses WeakHashMap for the pages. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CAY-1075) Paged queries should not require memory proportional to query list length

Posted by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1075.
--------------------------------

    Resolution: Won't Fix

Per your comment on the user list, since you are not interested in maintaining this, I'd say we close the Jira. BTW, I also contemplated the approach of a custom iflatable list before to give users more control over the behavior. Maybe this idea will reemerge in Cayenne at some point. For now there is a ResultIterator option of course. Anyways, thanks for bringing up the whole topic. Hopefully something will come out of it.

> Paged queries should not require memory proportional to query list length
> -------------------------------------------------------------------------
>
>                 Key: CAY-1075
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1075
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Øyvind Harboe
>            Assignee: Andrus Adamchik
>         Attachments: IncrementalFaultList.java, LinearList.java
>
>
> I'm working on a version of paged queries that uses WeakHashMap for the pages. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAY-1075) Paged queries should not require memory proportional to query list length

Posted by "Øyvind Harboe (JIRA)" <de...@cayenne.apache.org>.
    [ https://issues.apache.org/cayenne/browse/CAY-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984#action_12984 ] 

Øyvind Harboe commented on CAY-1075:
------------------------------------

To clarify: it is not about me maintaining it in Cayenne, but rather that there are several ways to do this in the application and good reasons to do so. 

Cayenne consistently keeps the entire list in memory(paged queries just fetch it a bit at the time). This gives predictable well defined behaviour for Cayenne's implementation and the line in the sand between Cayenne and the application can be drawn there at this point I think.

> Paged queries should not require memory proportional to query list length
> -------------------------------------------------------------------------
>
>                 Key: CAY-1075
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1075
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Øyvind Harboe
>            Assignee: Andrus Adamchik
>         Attachments: IncrementalFaultList.java, LinearList.java
>
>
> I'm working on a version of paged queries that uses WeakHashMap for the pages. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAY-1075) Paged queries should not require memory proportional to query list length

Posted by "Øyvind Harboe (JIRA)" <de...@cayenne.apache.org>.
    [ https://issues.apache.org/cayenne/browse/CAY-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982#action_12982 ] 

Øyvind Harboe commented on CAY-1075:
------------------------------------

Should this be closed?

Is this a Cayenne or application problem?

The application can implement these sort of access lists.



> Paged queries should not require memory proportional to query list length
> -------------------------------------------------------------------------
>
>                 Key: CAY-1075
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1075
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Øyvind Harboe
>            Assignee: Andrus Adamchik
>         Attachments: IncrementalFaultList.java, LinearList.java
>
>
> I'm working on a version of paged queries that uses WeakHashMap for the pages. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAY-1075) Paged queries should not require memory proportional to query list length

Posted by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org>.
    [ https://issues.apache.org/cayenne/browse/CAY-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978#action_12978 ] 

Andrus Adamchik commented on CAY-1075:
--------------------------------------

A thought on the process: the best way to engage with developer community and discuss the design is a dev mailing list. Jira is good for task tracking, not design discussions. 

> Paged queries should not require memory proportional to query list length
> -------------------------------------------------------------------------
>
>                 Key: CAY-1075
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1075
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Øyvind Harboe
>            Assignee: Andrus Adamchik
>         Attachments: IncrementalFaultList.java, LinearList.java
>
>
> I'm working on a version of paged queries that uses WeakHashMap for the pages. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAY-1075) Paged queries should not require memory proportional to query list length

Posted by "Øyvind Harboe (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Øyvind Harboe updated CAY-1075:
-------------------------------

    Attachment: IncrementalFaultList.java

My work in progress implementation that I'll use for measuring performance.

If I can show improved behaviour, I'll see if I can redo it in a more palatable form.

> Paged queries should not require memory proportional to query list length
> -------------------------------------------------------------------------
>
>                 Key: CAY-1075
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1075
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Øyvind Harboe
>            Assignee: Andrus Adamchik
>         Attachments: IncrementalFaultList.java
>
>
> I'm working on a version of paged queries that uses WeakHashMap for the pages. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.