{"action":"created","comment":{"url":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/comments/28075957","id":28075957,"diff_hunk":"@@ -141,7 +141,24 @@ proc qc::db_cache_select_table { args } {\n         # Use ns_cache\n         # Create the cache if it doesn't exist yet\n         if { ! [in [ns_cache_names] db] } {\n-\t    ns_cache create db -size [expr 1024*1024] \n+            # DB cache size\n+            set param_name db_cache_size\n+            db_0or1row {select param_value from params where param_name=:param_name} {","path":"tcl/db_cache.tcl","position":7,"original_position":7,"commit_id":"177c7e332148aed6569cc64a61b29629f4dc3f07","original_commit_id":"177c7e332148aed6569cc64a61b29629f4dc3f07","user":{"login":"daniel-qcode","id":3089689,"avatar_url":"https://avatars.githubusercontent.com/u/3089689?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-qcode","html_url":"https://github.com/daniel-qcode","followers_url":"https://api.github.com/users/daniel-qcode/followers","following_url":"https://api.github.com/users/daniel-qcode/following{/other_user}","gists_url":"https://api.github.com/users/daniel-qcode/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-qcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-qcode/subscriptions","organizations_url":"https://api.github.com/users/daniel-qcode/orgs","repos_url":"https://api.github.com/users/daniel-qcode/repos","events_url":"https://api.github.com/users/daniel-qcode/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-qcode/received_events","type":"User","site_admin":false},"body":"It is only run once when the db ns_cache hasn't been initialised","created_at":"2015-04-09T16:06:20Z","updated_at":"2015-04-09T16:06:20Z","html_url":"https://github.com/qcode-software/qcode-tcl/pull/226#discussion_r28075957","pull_request_url":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/226","_links":{"self":{"href":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/comments/28075957"},"html":{"href":"https://github.com/qcode-software/qcode-tcl/pull/226#discussion_r28075957"},"pull_request":{"href":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/226"}}},"pull_request":{"url":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/226","id":32959728,"html_url":"https://github.com/qcode-software/qcode-tcl/pull/226","diff_url":"https://github.com/qcode-software/qcode-tcl/pull/226.diff","patch_url":"https://github.com/qcode-software/qcode-tcl/pull/226.patch","issue_url":"https://api.github.com/repos/qcode-software/qcode-tcl/issues/226","number":226,"state":"open","locked":false,"title":"Db cache size param2","user":{"login":"daniel-qcode","id":3089689,"avatar_url":"https://avatars.githubusercontent.com/u/3089689?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-qcode","html_url":"https://github.com/daniel-qcode","followers_url":"https://api.github.com/users/daniel-qcode/followers","following_url":"https://api.github.com/users/daniel-qcode/following{/other_user}","gists_url":"https://api.github.com/users/daniel-qcode/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-qcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-qcode/subscriptions","organizations_url":"https://api.github.com/users/daniel-qcode/orgs","repos_url":"https://api.github.com/users/daniel-qcode/repos","events_url":"https://api.github.com/users/daniel-qcode/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-qcode/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-09T14:18:58Z","updated_at":"2015-04-09T16:06:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a8a8c5662bde98c46da4816b9ef61cb79b2ffde","assignee":{"login":"bvw","id":486212,"avatar_url":"https://avatars.githubusercontent.com/u/486212?v=3","gravatar_id":"","url":"https://api.github.com/users/bvw","html_url":"https://github.com/bvw","followers_url":"https://api.github.com/users/bvw/followers","following_url":"https://api.github.com/users/bvw/following{/other_user}","gists_url":"https://api.github.com/users/bvw/gists{/gist_id}","starred_url":"https://api.github.com/users/bvw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvw/subscriptions","organizations_url":"https://api.github.com/users/bvw/orgs","repos_url":"https://api.github.com/users/bvw/repos","events_url":"https://api.github.com/users/bvw/events{/privacy}","received_events_url":"https://api.github.com/users/bvw/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/226/commits","review_comments_url":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/226/comments","review_comment_url":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qcode-software/qcode-tcl/issues/226/comments","statuses_url":"https://api.github.com/repos/qcode-software/qcode-tcl/statuses/177c7e332148aed6569cc64a61b29629f4dc3f07","head":{"label":"qcode-software:db_cache_size-param2","ref":"db_cache_size-param2","sha":"177c7e332148aed6569cc64a61b29629f4dc3f07","user":{"login":"qcode-software","id":2988656,"avatar_url":"https://avatars.githubusercontent.com/u/2988656?v=3","gravatar_id":"","url":"https://api.github.com/users/qcode-software","html_url":"https://github.com/qcode-software","followers_url":"https://api.github.com/users/qcode-software/followers","following_url":"https://api.github.com/users/qcode-software/following{/other_user}","gists_url":"https://api.github.com/users/qcode-software/gists{/gist_id}","starred_url":"https://api.github.com/users/qcode-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qcode-software/subscriptions","organizations_url":"https://api.github.com/users/qcode-software/orgs","repos_url":"https://api.github.com/users/qcode-software/repos","events_url":"https://api.github.com/users/qcode-software/events{/privacy}","received_events_url":"https://api.github.com/users/qcode-software/received_events","type":"Organization","site_admin":false},"repo":{"id":7261231,"name":"qcode-tcl","full_name":"qcode-software/qcode-tcl","owner":{"login":"qcode-software","id":2988656,"avatar_url":"https://avatars.githubusercontent.com/u/2988656?v=3","gravatar_id":"","url":"https://api.github.com/users/qcode-software","html_url":"https://github.com/qcode-software","followers_url":"https://api.github.com/users/qcode-software/followers","following_url":"https://api.github.com/users/qcode-software/following{/other_user}","gists_url":"https://api.github.com/users/qcode-software/gists{/gist_id}","starred_url":"https://api.github.com/users/qcode-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qcode-software/subscriptions","organizations_url":"https://api.github.com/users/qcode-software/orgs","repos_url":"https://api.github.com/users/qcode-software/repos","events_url":"https://api.github.com/users/qcode-software/events{/privacy}","received_events_url":"https://api.github.com/users/qcode-software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qcode-software/qcode-tcl","description":"Qcode Tcl Lib","fork":false,"url":"https://api.github.com/repos/qcode-software/qcode-tcl","forks_url":"https://api.github.com/repos/qcode-software/qcode-tcl/forks","keys_url":"https://api.github.com/repos/qcode-software/qcode-tcl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qcode-software/qcode-tcl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qcode-software/qcode-tcl/teams","hooks_url":"https://api.github.com/repos/qcode-software/qcode-tcl/hooks","issue_events_url":"https://api.github.com/repos/qcode-software/qcode-tcl/issues/events{/number}","events_url":"https://api.github.com/repos/qcode-software/qcode-tcl/events","assignees_url":"https://api.github.com/repos/qcode-software/qcode-tcl/assignees{/user}","branches_url":"https://api.github.com/repos/qcode-software/qcode-tcl/branches{/branch}","tags_url":"https://api.github.com/repos/qcode-software/qcode-tcl/tags","blobs_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/refs{/sha}","trees_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qcode-software/qcode-tcl/statuses/{sha}","languages_url":"https://api.github.com/repos/qcode-software/qcode-tcl/languages","stargazers_url":"https://api.github.com/repos/qcode-software/qcode-tcl/stargazers","contributors_url":"https://api.github.com/repos/qcode-software/qcode-tcl/contributors","subscribers_url":"https://api.github.com/repos/qcode-software/qcode-tcl/subscribers","subscription_url":"https://api.github.com/repos/qcode-software/qcode-tcl/subscription","commits_url":"https://api.github.com/repos/qcode-software/qcode-tcl/commits{/sha}","git_commits_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/commits{/sha}","comments_url":"https://api.github.com/repos/qcode-software/qcode-tcl/comments{/number}","issue_comment_url":"https://api.github.com/repos/qcode-software/qcode-tcl/issues/comments{/number}","contents_url":"https://api.github.com/repos/qcode-software/qcode-tcl/contents/{+path}","compare_url":"https://api.github.com/repos/qcode-software/qcode-tcl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qcode-software/qcode-tcl/merges","archive_url":"https://api.github.com/repos/qcode-software/qcode-tcl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qcode-software/qcode-tcl/downloads","issues_url":"https://api.github.com/repos/qcode-software/qcode-tcl/issues{/number}","pulls_url":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls{/number}","milestones_url":"https://api.github.com/repos/qcode-software/qcode-tcl/milestones{/number}","notifications_url":"https://api.github.com/repos/qcode-software/qcode-tcl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qcode-software/qcode-tcl/labels{/name}","releases_url":"https://api.github.com/repos/qcode-software/qcode-tcl/releases{/id}","created_at":"2012-12-20T17:08:57Z","updated_at":"2015-04-06T10:27:22Z","pushed_at":"2015-04-09T16:02:17Z","git_url":"git://github.com/qcode-software/qcode-tcl.git","ssh_url":"git@github.com:qcode-software/qcode-tcl.git","clone_url":"https://github.com/qcode-software/qcode-tcl.git","svn_url":"https://github.com/qcode-software/qcode-tcl","homepage":null,"size":6724,"stargazers_count":4,"watchers_count":4,"language":"Tcl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":4,"default_branch":"master"}},"base":{"label":"qcode-software:qcode-tcl-5","ref":"qcode-tcl-5","sha":"9f68365384e65cb45d7662eb6c91d70dfe6dbaf1","user":{"login":"qcode-software","id":2988656,"avatar_url":"https://avatars.githubusercontent.com/u/2988656?v=3","gravatar_id":"","url":"https://api.github.com/users/qcode-software","html_url":"https://github.com/qcode-software","followers_url":"https://api.github.com/users/qcode-software/followers","following_url":"https://api.github.com/users/qcode-software/following{/other_user}","gists_url":"https://api.github.com/users/qcode-software/gists{/gist_id}","starred_url":"https://api.github.com/users/qcode-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qcode-software/subscriptions","organizations_url":"https://api.github.com/users/qcode-software/orgs","repos_url":"https://api.github.com/users/qcode-software/repos","events_url":"https://api.github.com/users/qcode-software/events{/privacy}","received_events_url":"https://api.github.com/users/qcode-software/received_events","type":"Organization","site_admin":false},"repo":{"id":7261231,"name":"qcode-tcl","full_name":"qcode-software/qcode-tcl","owner":{"login":"qcode-software","id":2988656,"avatar_url":"https://avatars.githubusercontent.com/u/2988656?v=3","gravatar_id":"","url":"https://api.github.com/users/qcode-software","html_url":"https://github.com/qcode-software","followers_url":"https://api.github.com/users/qcode-software/followers","following_url":"https://api.github.com/users/qcode-software/following{/other_user}","gists_url":"https://api.github.com/users/qcode-software/gists{/gist_id}","starred_url":"https://api.github.com/users/qcode-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qcode-software/subscriptions","organizations_url":"https://api.github.com/users/qcode-software/orgs","repos_url":"https://api.github.com/users/qcode-software/repos","events_url":"https://api.github.com/users/qcode-software/events{/privacy}","received_events_url":"https://api.github.com/users/qcode-software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qcode-software/qcode-tcl","description":"Qcode Tcl Lib","fork":false,"url":"https://api.github.com/repos/qcode-software/qcode-tcl","forks_url":"https://api.github.com/repos/qcode-software/qcode-tcl/forks","keys_url":"https://api.github.com/repos/qcode-software/qcode-tcl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qcode-software/qcode-tcl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qcode-software/qcode-tcl/teams","hooks_url":"https://api.github.com/repos/qcode-software/qcode-tcl/hooks","issue_events_url":"https://api.github.com/repos/qcode-software/qcode-tcl/issues/events{/number}","events_url":"https://api.github.com/repos/qcode-software/qcode-tcl/events","assignees_url":"https://api.github.com/repos/qcode-software/qcode-tcl/assignees{/user}","branches_url":"https://api.github.com/repos/qcode-software/qcode-tcl/branches{/branch}","tags_url":"https://api.github.com/repos/qcode-software/qcode-tcl/tags","blobs_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/refs{/sha}","trees_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qcode-software/qcode-tcl/statuses/{sha}","languages_url":"https://api.github.com/repos/qcode-software/qcode-tcl/languages","stargazers_url":"https://api.github.com/repos/qcode-software/qcode-tcl/stargazers","contributors_url":"https://api.github.com/repos/qcode-software/qcode-tcl/contributors","subscribers_url":"https://api.github.com/repos/qcode-software/qcode-tcl/subscribers","subscription_url":"https://api.github.com/repos/qcode-software/qcode-tcl/subscription","commits_url":"https://api.github.com/repos/qcode-software/qcode-tcl/commits{/sha}","git_commits_url":"https://api.github.com/repos/qcode-software/qcode-tcl/git/commits{/sha}","comments_url":"https://api.github.com/repos/qcode-software/qcode-tcl/comments{/number}","issue_comment_url":"https://api.github.com/repos/qcode-software/qcode-tcl/issues/comments{/number}","contents_url":"https://api.github.com/repos/qcode-software/qcode-tcl/contents/{+path}","compare_url":"https://api.github.com/repos/qcode-software/qcode-tcl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qcode-software/qcode-tcl/merges","archive_url":"https://api.github.com/repos/qcode-software/qcode-tcl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qcode-software/qcode-tcl/downloads","issues_url":"https://api.github.com/repos/qcode-software/qcode-tcl/issues{/number}","pulls_url":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls{/number}","milestones_url":"https://api.github.com/repos/qcode-software/qcode-tcl/milestones{/number}","notifications_url":"https://api.github.com/repos/qcode-software/qcode-tcl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qcode-software/qcode-tcl/labels{/name}","releases_url":"https://api.github.com/repos/qcode-software/qcode-tcl/releases{/id}","created_at":"2012-12-20T17:08:57Z","updated_at":"2015-04-06T10:27:22Z","pushed_at":"2015-04-09T16:02:17Z","git_url":"git://github.com/qcode-software/qcode-tcl.git","ssh_url":"git@github.com:qcode-software/qcode-tcl.git","clone_url":"https://github.com/qcode-software/qcode-tcl.git","svn_url":"https://github.com/qcode-software/qcode-tcl","homepage":null,"size":6724,"stargazers_count":4,"watchers_count":4,"language":"Tcl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/226"},"html":{"href":"https://github.com/qcode-software/qcode-tcl/pull/226"},"issue":{"href":"https://api.github.com/repos/qcode-software/qcode-tcl/issues/226"},"comments":{"href":"https://api.github.com/repos/qcode-software/qcode-tcl/issues/226/comments"},"review_comments":{"href":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/226/comments"},"review_comment":{"href":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qcode-software/qcode-tcl/pulls/226/commits"},"statuses":{"href":"https://api.github.com/repos/qcode-software/qcode-tcl/statuses/177c7e332148aed6569cc64a61b29629f4dc3f07"}}}}