{"id":21810681,"url":"https://github.com/samdark/yii-db-profiler","last_synced_at":"2025-04-13T22:11:32.664Z","repository":{"id":7846350,"uuid":"9218114","full_name":"samdark/yii-db-profiler","owner":"samdark","description":"Yii profiler adjusted to deal with MySQL performance optimizations","archived":false,"fork":false,"pushed_at":"2014-02-14T15:07:09.000Z","size":128,"stargazers_count":24,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-27T12:38:26.251Z","etag":null,"topics":["database","profiler","queries","sql","yii"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samdark.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-04T12:53:46.000Z","updated_at":"2020-01-16T02:37:00.000Z","dependencies_parsed_at":"2022-08-31T14:23:08.785Z","dependency_job_id":null,"html_url":"https://github.com/samdark/yii-db-profiler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii-db-profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii-db-profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii-db-profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii-db-profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samdark","download_url":"https://codeload.github.com/samdark/yii-db-profiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788924,"owners_count":21161727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","profiler","queries","sql","yii"],"created_at":"2024-11-27T13:37:10.939Z","updated_at":"2025-04-13T22:11:32.638Z","avatar_url":"https://github.com/samdark.png","language":"PHP","funding_links":[],"categories":["Extensions"],"sub_categories":["Debug"],"readme":"DB profiler\n===========\n\nInstead of regular `CProfileLogRoute` DB profiler displays database queries and\nquery-related info only. Also it have an ability to highligt possibly slow queries\nand queries repeated many times.\n\nInstallation\n------------\n\nUnpack to `protected/extensions/`. Add the following to your `protected/config/main.php`:\n\n~~~\n\u003c?php\nreturn array(\n\t// …\n\t'components' =\u003e array(\n\t\t// …\n\t\t'db' =\u003e array(\n\t\t\t// …\n\t\t\t'enableProfiling'=\u003etrue,\n\t\t\t'enableParamLogging' =\u003e true,\n\t\t),\n\t\t'log'=\u003earray(\n\t\t\t'class'=\u003e'CLogRouter',\n\t\t\t'routes'=\u003earray(\n\t\t\t\t\t// …\n            \t    array(\n                \t    'class'=\u003e'ext.db_profiler.DbProfileLogRoute',\n\t\t\t\t\t\t'countLimit' =\u003e 1, // How many times the same query should be executed to be considered inefficient\n\t\t\t\t\t\t'slowQueryMin' =\u003e 0.01, // Minimum time for the query to be slow\n                \t),\n\t\t\t),\n\t\t),\n\t),\n);\n~~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdark%2Fyii-db-profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamdark%2Fyii-db-profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdark%2Fyii-db-profiler/lists"}