René's URL Explorer Experiment


Title: Handler Finalize() methods are never called, so intended indexes are never created · Issue #83 · Unity-Technologies/UnityDataTools · GitHub

Open Graph Title: Handler Finalize() methods are never called, so intended indexes are never created · Issue #83 · Unity-Technologies/UnityDataTools

X Title: Handler Finalize() methods are never called, so intended indexes are never created · Issue #83 · Unity-Technologies/UnityDataTools

Description: Summary The ISQLiteHandler implementations each define a public void Finalize(SqliteConnection db) method, but nothing ever calls it. Finalize is not part of the ISQLiteHandler interface (which only declares Init, Process, and Dispose), ...

Open Graph Description: Summary The ISQLiteHandler implementations each define a public void Finalize(SqliteConnection db) method, but nothing ever calls it. Finalize is not part of the ISQLiteHandler interface (which onl...

X Description: Summary The ISQLiteHandler implementations each define a public void Finalize(SqliteConnection db) method, but nothing ever calls it. Finalize is not part of the ISQLiteHandler interface (which onl...

Opengraph URL: https://github.com/Unity-Technologies/UnityDataTools/issues/83

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handler Finalize() methods are never called, so intended indexes are never created","articleBody":"## Summary\n\nThe `ISQLiteHandler` implementations each define a `public void Finalize(SqliteConnection db)` method, but **nothing ever calls it**. `Finalize` is not part of the `ISQLiteHandler` interface (which only declares `Init`, `Process`, and `Dispose`), and there is no dispatch site anywhere in the codebase. As a result, the finalization work in those methods never runs.\n\nFor most handlers the method is an empty stub, but two of them create indexes that are therefore never created:\n\n- `AssetBundleHandler.Finalize` -\u003e `preload_dependencies_object`, `preload_dependencies_dependency`\n- `ShaderHandler.Finalize` -\u003e `shader_subprograms_shader_index`, `shader_subprogram_keywords_subprogram_id_index`\n\n(Note: `SQLiteWriter.End()` runs `Resources.Finalize` / `Finalize.sql`, which creates the `refs` indexes. That is a separate, top-level mechanism and does run - it is unrelated to these per-handler `Finalize` methods.)\n\n## Impact\n\n- The four indexes above are missing from every analyze database, so queries that filter/join on `preload_dependencies(object)`, `preload_dependencies(dependency)`, `shader_subprograms(shader)`, and `shader_subprogram_keywords(subprogram_id)` do full scans. This is a performance issue only; results are still correct.\n- The empty `Finalize` stubs in the other handlers are dead code and misleadingly imply a finalization step exists.\n\n## Evidence\n\nAfter running `analyze` on `TestCommon/Data/LeadingEdgeBuilds/AssetBundles`:\n\n```\nsqlite\u003e SELECT name FROM sqlite_master WHERE type='index' AND name LIKE 'preload_%';\n-- (no rows)\n```\n\nThe `preload_dependencies` table and its data are present, but the indexes are not.\n\n## Affected files\n\n- `Analyzer/SQLite/Handlers/ISQLiteHandler.cs` - interface has no `Finalize`.\n- Non-empty bodies: `Analyzer/SQLite/Handlers/AssetBundleHandler.cs`, `Analyzer/SQLite/Handlers/ShaderHandler.cs`.\n- Empty stubs: `AnimationClipHandler.cs`, `AudioClipHandler.cs`, `BuildReportHandler.cs`, `MeshHandler.cs`, `MonoScriptHandler.cs`, `PackedAssetsHandler.cs`, `PreloadDataHandler.cs`, `Texture2DHandler.cs`.\n\n## Suggested fix\n\nEither:\n\n1. **Wire it up** - add `Finalize(SqliteConnection db)` to `ISQLiteHandler` and invoke it once per handler after all serialized files are processed (the handler lifecycle is owned by `SerializedFileSQLiteWriter`; `SQLiteWriter.End()` is the natural point at which finalization runs). Drop the now-redundant empty overrides where possible. This restores the four intended indexes.\n\n2. **Delete the dead code** - if the indexes are not wanted, remove all the `Finalize` methods.\n\nOption 1 is preferred since the indexes are clearly intended and benefit lookups on the dependency and shader-subprogram tables.\n\n## Notes\n\nThe two `preload_dependencies_*` index names were just updated in #82 (table rename); this bug predates that change - the indexes were never created under their old `asset_dependencies_*` names either.\n","author":{"url":"https://github.com/SkowronskiAndrew","@type":"Person","name":"SkowronskiAndrew"},"datePublished":"2026-07-06T01:21:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/83/UnityDataTools/issues/83"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0121c002-8e55-56cb-4e26-c47003291f48
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8506:2781A3:12CC088:198E060:6A5F1856
html-safe-nonce721650c93057fe3edf7c8819f74b0f71b23c78577681917dc037894cf0e21ff9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTA2OjI3ODFBMzoxMkNDMDg4OjE5OEUwNjA6NkE1RjE4NTYiLCJ2aXNpdG9yX2lkIjoiNzEwMjg5MTA0MzMwMjg3MzE3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac272689545d862139d8095f3476b03ad1f1bbe69523f93dbadd53e8f9f19f0590
hovercard-subject-tagissue:4815222412
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Unity-Technologies/UnityDataTools/83/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8a1a53b2924f182c0bf4531941c818bd35b4be5ffc8f30c5e40b87c6a2a5cb26/Unity-Technologies/UnityDataTools/issues/83
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8a1a53b2924f182c0bf4531941c818bd35b4be5ffc8f30c5e40b87c6a2a5cb26/Unity-Technologies/UnityDataTools/issues/83
og:image:altSummary The ISQLiteHandler implementations each define a public void Finalize(SqliteConnection db) method, but nothing ever calls it. Finalize is not part of the ISQLiteHandler interface (which onl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSkowronskiAndrew
hostnamegithub.com
expected-hostnamegithub.com
Nonebf8fa4b42b6d150def6175efb9b0f1ec8e9628d7229ee2bdf6e850e7bdad923e
turbo-cache-controlno-preview
go-importgithub.com/Unity-Technologies/UnityDataTools git https://github.com/Unity-Technologies/UnityDataTools.git
octolytics-dimension-user_id426196
octolytics-dimension-user_loginUnity-Technologies
octolytics-dimension-repository_id472365703
octolytics-dimension-repository_nwoUnity-Technologies/UnityDataTools
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id472365703
octolytics-dimension-repository_network_root_nwoUnity-Technologies/UnityDataTools
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7debc3c6cd5de09c6e22b47a1b9982acb2aabb7b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Unity-Technologies/UnityDataTools/issues/83#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnity-Technologies%2FUnityDataTools%2Fissues%2F83
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnity-Technologies%2FUnityDataTools%2Fissues%2F83
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Unity-Technologies%2FUnityDataTools
Reloadhttps://github.com/Unity-Technologies/UnityDataTools/issues/83
Reloadhttps://github.com/Unity-Technologies/UnityDataTools/issues/83
Reloadhttps://github.com/Unity-Technologies/UnityDataTools/issues/83
Please reload this pagehttps://github.com/Unity-Technologies/UnityDataTools/issues/83
Unity-Technologies https://github.com/Unity-Technologies
UnityDataToolshttps://github.com/Unity-Technologies/UnityDataTools
Notifications https://github.com/login?return_to=%2FUnity-Technologies%2FUnityDataTools
Fork 70 https://github.com/login?return_to=%2FUnity-Technologies%2FUnityDataTools
Star 806 https://github.com/login?return_to=%2FUnity-Technologies%2FUnityDataTools
Code https://github.com/Unity-Technologies/UnityDataTools
Issues 15 https://github.com/Unity-Technologies/UnityDataTools/issues
Pull requests 2 https://github.com/Unity-Technologies/UnityDataTools/pulls
Actions https://github.com/Unity-Technologies/UnityDataTools/actions
Projects https://github.com/Unity-Technologies/UnityDataTools/projects
Security and quality 0 https://github.com/Unity-Technologies/UnityDataTools/security
Insights https://github.com/Unity-Technologies/UnityDataTools/pulse
Code https://github.com/Unity-Technologies/UnityDataTools
Issues https://github.com/Unity-Technologies/UnityDataTools/issues
Pull requests https://github.com/Unity-Technologies/UnityDataTools/pulls
Actions https://github.com/Unity-Technologies/UnityDataTools/actions
Projects https://github.com/Unity-Technologies/UnityDataTools/projects
Security and quality https://github.com/Unity-Technologies/UnityDataTools/security
Insights https://github.com/Unity-Technologies/UnityDataTools/pulse
Handler Finalize() methods are never called, so intended indexes are never createdhttps://github.com/Unity-Technologies/UnityDataTools/issues/83#top
https://github.com/SkowronskiAndrew
SkowronskiAndrewhttps://github.com/SkowronskiAndrew
on Jul 6, 2026https://github.com/Unity-Technologies/UnityDataTools/issues/83#issue-4815222412
#82https://github.com/Unity-Technologies/UnityDataTools/issues/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.