{"action":"reopened","issue":{"url":"https://api.github.com/repos/nlaplante/envelope/issues/45","labels_url":"https://api.github.com/repos/nlaplante/envelope/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/nlaplante/envelope/issues/45/comments","events_url":"https://api.github.com/repos/nlaplante/envelope/issues/45/events","html_url":"https://github.com/nlaplante/envelope/issues/45","id":58641501,"number":45,"title":"Don't load all transactions in memory","user":{"login":"nlaplante","id":141054,"avatar_url":"https://avatars.githubusercontent.com/u/141054?v=3","gravatar_id":"","url":"https://api.github.com/users/nlaplante","html_url":"https://github.com/nlaplante","followers_url":"https://api.github.com/users/nlaplante/followers","following_url":"https://api.github.com/users/nlaplante/following{/other_user}","gists_url":"https://api.github.com/users/nlaplante/gists{/gist_id}","starred_url":"https://api.github.com/users/nlaplante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlaplante/subscriptions","organizations_url":"https://api.github.com/users/nlaplante/orgs","repos_url":"https://api.github.com/users/nlaplante/repos","events_url":"https://api.github.com/users/nlaplante/events{/privacy}","received_events_url":"https://api.github.com/users/nlaplante/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nlaplante/envelope/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/nlaplante/envelope/labels/Database","name":"Database","color":"207de5"},{"url":"https://api.github.com/repos/nlaplante/envelope/labels/enhancement","name":"enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/nlaplante/envelope/labels/in%20progress","name":"in progress","color":"bfdadc"}],"state":"open","locked":false,"assignee":{"login":"nlaplante","id":141054,"avatar_url":"https://avatars.githubusercontent.com/u/141054?v=3","gravatar_id":"","url":"https://api.github.com/users/nlaplante","html_url":"https://github.com/nlaplante","followers_url":"https://api.github.com/users/nlaplante/followers","following_url":"https://api.github.com/users/nlaplante/following{/other_user}","gists_url":"https://api.github.com/users/nlaplante/gists{/gist_id}","starred_url":"https://api.github.com/users/nlaplante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlaplante/subscriptions","organizations_url":"https://api.github.com/users/nlaplante/orgs","repos_url":"https://api.github.com/users/nlaplante/repos","events_url":"https://api.github.com/users/nlaplante/events{/privacy}","received_events_url":"https://api.github.com/users/nlaplante/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nlaplante/envelope/milestones/1","html_url":"https://github.com/nlaplante/envelope/milestones/Beta%201","labels_url":"https://api.github.com/repos/nlaplante/envelope/milestones/1/labels","id":911552,"number":1,"title":"Beta 1","description":"Basic functionality:\r\n\r\n - Add/remove/rename accounts\r\n - Import transactions into account (QIF)\r\n - Delete transactions\r\n - Edit transactions\r\n - Manually enter transactions\r\n - Create categories \r\n - Delete categories\r\n - Assign categories to transactions\r\n - Set budget amount for categories\r\n - Spending / income overview\r\n - Search transactions\r\n - View transactions for this month, last month, future or between timespan\r\n - Save/restore application state","creator":{"login":"nlaplante","id":141054,"avatar_url":"https://avatars.githubusercontent.com/u/141054?v=3","gravatar_id":"","url":"https://api.github.com/users/nlaplante","html_url":"https://github.com/nlaplante","followers_url":"https://api.github.com/users/nlaplante/followers","following_url":"https://api.github.com/users/nlaplante/following{/other_user}","gists_url":"https://api.github.com/users/nlaplante/gists{/gist_id}","starred_url":"https://api.github.com/users/nlaplante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlaplante/subscriptions","organizations_url":"https://api.github.com/users/nlaplante/orgs","repos_url":"https://api.github.com/users/nlaplante/repos","events_url":"https://api.github.com/users/nlaplante/events{/privacy}","received_events_url":"https://api.github.com/users/nlaplante/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":22,"state":"open","created_at":"2014-12-21T18:30:22Z","updated_at":"2015-02-25T19:12:20Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-23T20:15:39Z","updated_at":"2015-02-25T19:12:20Z","closed_at":null,"body":"When selecting an account or a category, all transactions are loaded and assigned to the transaction view. The tree model filter determines if a transaction is shown or not in the list.\r\n\r\nIt's ok for 3 or 4 months worth of transactions, but after a year, the number of transactions will be way too high to hold it all in memory and still be efficient.\r\n\r\nThe transactions should be loaded selectively from the database when:\r\n\r\n  - selecting an account\r\n  - selecting a category\r\n  - changing the date filters from the transaction view\r\n  - changing search terms\r\n\r\nDoing so would make the use of TreeModelFilter obsolete, and thus speeding up the rendering of the tree view."}}