{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1275","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1275/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1275/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1275/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1275","id":158871552,"number":1275,"title":"First query after synchronization takes a long time","user":{"login":"lucatorella","id":1781236,"avatar_url":"https://avatars.githubusercontent.com/u/1781236?v=3","gravatar_id":"","url":"https://api.github.com/users/lucatorella","html_url":"https://github.com/lucatorella","followers_url":"https://api.github.com/users/lucatorella/followers","following_url":"https://api.github.com/users/lucatorella/following{/other_user}","gists_url":"https://api.github.com/users/lucatorella/gists{/gist_id}","starred_url":"https://api.github.com/users/lucatorella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucatorella/subscriptions","organizations_url":"https://api.github.com/users/lucatorella/orgs","repos_url":"https://api.github.com/users/lucatorella/repos","events_url":"https://api.github.com/users/lucatorella/events{/privacy}","received_events_url":"https://api.github.com/users/lucatorella/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/f:%20View","name":"f: View","color":"bfd4f2"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/needsmoreinfo","name":"needsmoreinfo","color":"0052cc"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/performance","name":"performance","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-07T08:54:58Z","updated_at":"2016-06-08T16:02:37Z","closed_at":"2016-06-08T16:02:37Z","body":"I'm trying to update couchbase from version 1.1.1 to version 1.2.2.\r\n\r\nWhat I've noticed is that if I run a query just after the synchronization is done, it takes about 15-20 secs (I've about 10k documents in the database). Next queries takes 1 sec or less.\r\n\r\nI'm not able to notice any difference when I'm using couchbase lite 1.1.1.\r\n\r\n--------\r\n* Version:   1.2.2\r\n* Client OS: iOS 9.3.2\r\n* Server:    couchdb 1.6.1"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments/224638852","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1275#issuecomment-224638852","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1275","id":224638852,"user":{"login":"snej","id":43241,"avatar_url":"https://avatars.githubusercontent.com/u/43241?v=3","gravatar_id":"","url":"https://api.github.com/users/snej","html_url":"https://github.com/snej","followers_url":"https://api.github.com/users/snej/followers","following_url":"https://api.github.com/users/snej/following{/other_user}","gists_url":"https://api.github.com/users/snej/gists{/gist_id}","starred_url":"https://api.github.com/users/snej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snej/subscriptions","organizations_url":"https://api.github.com/users/snej/orgs","repos_url":"https://api.github.com/users/snej/repos","events_url":"https://api.github.com/users/snej/events{/privacy}","received_events_url":"https://api.github.com/users/snej/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T16:02:37Z","updated_at":"2016-06-08T16:02:37Z","body":"Async queries (including indexing) run on the same thread as the replicator, so if your app triggers such a query shortly before the replicator finishes, it's sort of a race whether the query or the replication will complete first. It might be a LiveQuery triggering the async query, if you've got one of those running."}}
{"actor":{"display_login":"snej"}}