{"action":"created","issue":{"url":"https://api.github.com/repos/ManuelSchneid3r/albert/issues/118","repository_url":"https://api.github.com/repos/ManuelSchneid3r/albert","labels_url":"https://api.github.com/repos/ManuelSchneid3r/albert/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/ManuelSchneid3r/albert/issues/118/comments","events_url":"https://api.github.com/repos/ManuelSchneid3r/albert/issues/118/events","html_url":"https://github.com/ManuelSchneid3r/albert/issues/118","id":137101789,"number":118,"title":"Files are not immediately available ","user":{"login":"josede","id":17428812,"avatar_url":"https://avatars.githubusercontent.com/u/17428812?v=3","gravatar_id":"","url":"https://api.github.com/users/josede","html_url":"https://github.com/josede","followers_url":"https://api.github.com/users/josede/followers","following_url":"https://api.github.com/users/josede/following{/other_user}","gists_url":"https://api.github.com/users/josede/gists{/gist_id}","starred_url":"https://api.github.com/users/josede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josede/subscriptions","organizations_url":"https://api.github.com/users/josede/orgs","repos_url":"https://api.github.com/users/josede/repos","events_url":"https://api.github.com/users/josede/events{/privacy}","received_events_url":"https://api.github.com/users/josede/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManuelSchneid3r/albert/labels/bug","name":"bug","color":"000000"},{"url":"https://api.github.com/repos/ManuelSchneid3r/albert/labels/P2:%20Important","name":"P2: Important","color":"800000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ManuelSchneid3r/albert/milestones/1","html_url":"https://github.com/ManuelSchneid3r/albert/milestones/v0.9","labels_url":"https://api.github.com/repos/ManuelSchneid3r/albert/milestones/1/labels","id":1620491,"number":1,"title":"v0.9","description":"This is a major release the frontend will be rewritten in QML.","creator":{"login":"ManuelSchneid3r","id":3252315,"avatar_url":"https://avatars.githubusercontent.com/u/3252315?v=3","gravatar_id":"","url":"https://api.github.com/users/ManuelSchneid3r","html_url":"https://github.com/ManuelSchneid3r","followers_url":"https://api.github.com/users/ManuelSchneid3r/followers","following_url":"https://api.github.com/users/ManuelSchneid3r/following{/other_user}","gists_url":"https://api.github.com/users/ManuelSchneid3r/gists{/gist_id}","starred_url":"https://api.github.com/users/ManuelSchneid3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManuelSchneid3r/subscriptions","organizations_url":"https://api.github.com/users/ManuelSchneid3r/orgs","repos_url":"https://api.github.com/users/ManuelSchneid3r/repos","events_url":"https://api.github.com/users/ManuelSchneid3r/events{/privacy}","received_events_url":"https://api.github.com/users/ManuelSchneid3r/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2016-03-03T15:56:01Z","updated_at":"2016-03-03T16:00:52Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-28T22:02:15Z","updated_at":"2016-03-09T10:24:59Z","closed_at":null,"body":"_Feature request:_ \r\n\"Files\" plugin: an Option shall be implemented to avoid re-indexing of files/directories at computer startup.\r\n\r\n_Reason:_ \r\nin many cases nothing has changed between shutting down and startup of a computer. Regardless of this fact, depending upon the amount of files/directories in the file system, the initial re-indexing at startup impedes for a considerable amount of seconds the use of the \"Files\" plugin.\r\n\r\nRegards\r\n"},"comment":{"url":"https://api.github.com/repos/ManuelSchneid3r/albert/issues/comments/194226840","html_url":"https://github.com/ManuelSchneid3r/albert/issues/118#issuecomment-194226840","issue_url":"https://api.github.com/repos/ManuelSchneid3r/albert/issues/118","id":194226840,"user":{"login":"ManuelSchneid3r","id":3252315,"avatar_url":"https://avatars.githubusercontent.com/u/3252315?v=3","gravatar_id":"","url":"https://api.github.com/users/ManuelSchneid3r","html_url":"https://github.com/ManuelSchneid3r","followers_url":"https://api.github.com/users/ManuelSchneid3r/followers","following_url":"https://api.github.com/users/ManuelSchneid3r/following{/other_user}","gists_url":"https://api.github.com/users/ManuelSchneid3r/gists{/gist_id}","starred_url":"https://api.github.com/users/ManuelSchneid3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManuelSchneid3r/subscriptions","organizations_url":"https://api.github.com/users/ManuelSchneid3r/orgs","repos_url":"https://api.github.com/users/ManuelSchneid3r/repos","events_url":"https://api.github.com/users/ManuelSchneid3r/events{/privacy}","received_events_url":"https://api.github.com/users/ManuelSchneid3r/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T10:24:59Z","updated_at":"2016-03-09T10:24:59Z","body":"Thinking about it in more detail, I realized that the items are properly deserialized and the index is complete after the initialization of the extension. The problem is that the offline search index, which is built on top of the file index, is not built while the initialization process of the extension, but while the index is updated in the background thread. The reason for this is the indexing as well as the creation of the search index are expensive operations. This affects all extensions that use the offline search index. The proper solution to make the search index searializable too since it directly bound to the item index itself. Well this is not that trivial to solve. And since the architecture in the backend is still not final this would introduce unneccesary complexity for the moment. The quick fix is to build the search index once while initialization. I guess this is a reasonable trade off. It delays the start of the application by milliseconds instead the initialization of the extension by seconds."}}