| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e465b232-20ad-340a-cbfc-33fc68f56249 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9A1C:1DCB8C:195BA95:2171B17:6B014167 |
| html-safe-nonce | 34417b6953006d981177c0ba7d6e375c148764917b963b3bbbd9792fc4a9ccb1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTFDOjFEQ0I4QzoxOTVCQTk1OjIxNzFCMTc6NkIwMTQxNjciLCJ2aXNpdG9yX2lkIjoiNzExODk1MTU1ODEyMDgxNjk5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b0bacf4e39d16d8882c1343074b1e48da1654bedf096217e62c6eeabc8bd47f4 |
| hovercard-subject-tag | pull_request:4272485165 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/coder/coder/pull/28126/files |
| twitter:image | https://avatars.githubusercontent.com/u/12927950?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12927950?s=400&v=4 |
| og:image:alt | Replaces the four session_count_* columns on workspace_agent_stats with a sparse session_counts JSONB object, so counting a new app needs no schema change.
Only positive counts are stored, so an i... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/coder/coder/pull/28126/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28126%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28126%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder |
| Reload | https://github.com/coder/coder/pull/28126/files |
| Reload | https://github.com/coder/coder/pull/28126/files |
| Reload | https://github.com/coder/coder/pull/28126/files |
| coder | https://github.com/coder |
| coder | https://github.com/coder/coder |
| Code | https://github.com/coder/coder |
| Issues320 (320) | https://github.com/coder/coder/issues |
| Pull requests468 (468) | https://github.com/coder/coder/pulls |
| Discussions | https://github.com/coder/coder/discussions |
| Actions | https://github.com/coder/coder/actions |
| Projects | https://github.com/coder/coder/projects |
| Security and quality49 (49) | https://github.com/coder/coder/security |
| Insights | https://github.com/coder/coder/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose |
| EhabY | https://github.com/EhabY |
| main | https://github.com/coder/coder/tree/main |
| perf/workspace-agent-session-counts-jsonb | https://github.com/coder/coder/tree/perf/workspace-agent-session-counts-jsonb |
|
Conversation
9
| https://github.com/coder/coder/pull/28126 |
|
Commits
1
| https://github.com/coder/coder/pull/28126/commits |
|
Checks
31
| https://github.com/coder/coder/pull/28126/checks |
|
Files changed
| https://github.com/coder/coder/pull/28126/files |
| Please reload this page | https://github.com/coder/coder/pull/28126/files |
|
perf: store workspace agent session counts as JSONB
| https://github.com/coder/coder/pull/28126/files#top |
|
Show all changes
1 commit
| https://github.com/coder/coder/pull/28126/files |
|
c8d5de0
perf: store workspace agent session counts as JSONB
EhabY Sep 1, 2026
| https://github.com/coder/coder/pull/28126/commits/c8d5de0aa667f263feeb23fe9557fb395402ff9a |
|
Clear filters
| https://github.com/coder/coder/pull/28126/files |
| Please reload this page | https://github.com/coder/coder/pull/28126/files |
| Please reload this page | https://github.com/coder/coder/pull/28126/files |
|
dbgen.go
| https://github.com/coder/coder/pull/28126/files#diff-92f52d4b046f067db8464b8668167ea0c03e2f84d4e1d709e080641d494802de |
|
dbpurge_test.go
| https://github.com/coder/coder/pull/28126/files#diff-0c52c3aacce78a57c18b09705a907c8955c1f3c6bf3bcb8980d204f5cc3d1d81 |
|
dbrollup_test.go
| https://github.com/coder/coder/pull/28126/files#diff-4a76799ff5e8746078945f6b3941bf232e610aeddf80ef8f64de7cbe51966a56 |
|
dump.sql
| https://github.com/coder/coder/pull/28126/files#diff-a29e74f67def8d2522ccc182c3f3202bb086399e8fb59309fa7d0abc6b39a8e9 |
|
000590_workspace_agent_session_counts.down.sql
| https://github.com/coder/coder/pull/28126/files#diff-d1b599758322189dcbfcfa34d42b8f6f1ca10cb6e2cc7fbe8c8cc227b28e6385 |
|
000590_workspace_agent_session_counts.up.sql
| https://github.com/coder/coder/pull/28126/files#diff-74dc0f5c4b45e7653d078a363b62ef9e05da21f75fbfdee2f9012d2f434944e1 |
|
migrate_test.go
| https://github.com/coder/coder/pull/28126/files#diff-cd36bbc9c3cbdb00fb02c742dc4ee5ff7362801d664cc8b2dc3a086fe1808a88 |
|
000590_workspace_agent_session_counts.up.sql
| https://github.com/coder/coder/pull/28126/files#diff-0e835793a94a969d580e00658bea4cc36aeac0fbd9a67c0e8de2d9f51c26c0ec |
|
models.go
| https://github.com/coder/coder/pull/28126/files#diff-b9c30e0e1f057da4bab9c301730ed1ebc8a82e9b0b0fa6ffa29bbe24117b5f21 |
|
querier.go
| https://github.com/coder/coder/pull/28126/files#diff-a96e7cef920f37ba1f1032eba4b241d1a9a06bc2089062b4ed3b1aa73c6bcd48 |
|
querier_test.go
| https://github.com/coder/coder/pull/28126/files#diff-e13ad743f9f1f9497c5baef54782ac6ff18a256f13cc916024ea8f1f91297740 |
|
queries.sql.go
| https://github.com/coder/coder/pull/28126/files#diff-bc904829e61be3669efa87d9f79fe9137ea288eebef74d7ae9c87cfab9833c43 |
|
insights.sql
| https://github.com/coder/coder/pull/28126/files#diff-08027849cf1bf5c8110e3f35173fbc8b614c0d04a3f0b8ff10cd31166745f51a |
|
workspaceagentstats.sql
| https://github.com/coder/coder/pull/28126/files#diff-bce6d2bfffe2a1c06d503ab8a4644443c910fc0ad27968c58187ac6631aa7240 |
|
metricscache_test.go
| https://github.com/coder/coder/pull/28126/files#diff-616736e98a327673fe18dae238c8fd0aea2f6de74a0a6211fa499fc74b207da8 |
|
batcher.go
| https://github.com/coder/coder/pull/28126/files#diff-52bdeefd6bcfee640700554e4709a8ed33cebf53f77d7758a9c9d4796caed47d |
|
batcher_internal_test.go
| https://github.com/coder/coder/pull/28126/files#diff-25991d8c76015c1605e70b87a0273c4441d587232754345e3772a9146ab8b720 |
| coderd/database/dbgen/dbgen.go | https://github.com/coder/coder/pull/28126/files#diff-92f52d4b046f067db8464b8668167ea0c03e2f84d4e1d709e080641d494802de |
|
View file
| https://github.com/coder/coder/blob/c8d5de0aa667f263feeb23fe9557fb395402ff9a/coderd/database/dbgen/dbgen.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28126/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/28126/files#diff-92f52d4b046f067db8464b8668167ea0c03e2f84d4e1d709e080641d494802de |
|
| https://github.com/coder/coder/pull/28126/files#diff-92f52d4b046f067db8464b8668167ea0c03e2f84d4e1d709e080641d494802de |
| coderd/database/dbpurge/dbpurge_test.go | https://github.com/coder/coder/pull/28126/files#diff-0c52c3aacce78a57c18b09705a907c8955c1f3c6bf3bcb8980d204f5cc3d1d81 |
|
View file
| https://github.com/coder/coder/blob/c8d5de0aa667f263feeb23fe9557fb395402ff9a/coderd/database/dbpurge/dbpurge_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28126/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/28126/files#diff-0c52c3aacce78a57c18b09705a907c8955c1f3c6bf3bcb8980d204f5cc3d1d81 |
|
| https://github.com/coder/coder/pull/28126/files#diff-0c52c3aacce78a57c18b09705a907c8955c1f3c6bf3bcb8980d204f5cc3d1d81 |
|
| https://github.com/coder/coder/pull/28126/files#diff-0c52c3aacce78a57c18b09705a907c8955c1f3c6bf3bcb8980d204f5cc3d1d81 |
|
| https://github.com/coder/coder/pull/28126/files#diff-0c52c3aacce78a57c18b09705a907c8955c1f3c6bf3bcb8980d204f5cc3d1d81 |
| coderd/database/dbrollup/dbrollup_test.go | https://github.com/coder/coder/pull/28126/files#diff-4a76799ff5e8746078945f6b3941bf232e610aeddf80ef8f64de7cbe51966a56 |
|
View file
| https://github.com/coder/coder/blob/c8d5de0aa667f263feeb23fe9557fb395402ff9a/coderd/database/dbrollup/dbrollup_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28126/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/28126/files#diff-4a76799ff5e8746078945f6b3941bf232e610aeddf80ef8f64de7cbe51966a56 |
|
| https://github.com/coder/coder/pull/28126/files#diff-4a76799ff5e8746078945f6b3941bf232e610aeddf80ef8f64de7cbe51966a56 |
|
| https://github.com/coder/coder/pull/28126/files#diff-4a76799ff5e8746078945f6b3941bf232e610aeddf80ef8f64de7cbe51966a56 |
|
| https://github.com/coder/coder/pull/28126/files#diff-4a76799ff5e8746078945f6b3941bf232e610aeddf80ef8f64de7cbe51966a56 |
|
| https://github.com/coder/coder/pull/28126/files#diff-4a76799ff5e8746078945f6b3941bf232e610aeddf80ef8f64de7cbe51966a56 |
| coderd/database/dump.sql | https://github.com/coder/coder/pull/28126/files#diff-a29e74f67def8d2522ccc182c3f3202bb086399e8fb59309fa7d0abc6b39a8e9 |
|
View file
| https://github.com/coder/coder/blob/c8d5de0aa667f263feeb23fe9557fb395402ff9a/coderd/database/dump.sql |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/coder/coder/pull/28126/files |
| coderd/database/migrations/000590_workspace_agent_session_counts.down.sql | https://github.com/coder/coder/pull/28126/files#diff-d1b599758322189dcbfcfa34d42b8f6f1ca10cb6e2cc7fbe8c8cc227b28e6385 |
|
View file
| https://github.com/coder/coder/blob/c8d5de0aa667f263feeb23fe9557fb395402ff9a/coderd/database/migrations/000590_workspace_agent_session_counts.down.sql |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28126/{{ revealButtonHref }} |
| coderd/database/migrations/000590_workspace_agent_session_counts.up.sql | https://github.com/coder/coder/pull/28126/files#diff-74dc0f5c4b45e7653d078a363b62ef9e05da21f75fbfdee2f9012d2f434944e1 |
|
View file
| https://github.com/coder/coder/blob/c8d5de0aa667f263feeb23fe9557fb395402ff9a/coderd/database/migrations/000590_workspace_agent_session_counts.up.sql |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/28126/{{ revealButtonHref }} |
| Please reload this page | https://github.com/coder/coder/pull/28126/files |
| Please reload this page | https://github.com/coder/coder/pull/28126/files |
| Please reload this page | https://github.com/coder/coder/pull/28126/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |