Title: RocksDB stores: file.by_guid fails for every GlobalId (readonly and read-write) — guid index never built · Issue #9822 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: RocksDB stores: file.by_guid fails for every GlobalId (readonly and read-write) — guid index never built · Issue #9822 · IfcOpenShell/IfcOpenShell
X Title: RocksDB stores: file.by_guid fails for every GlobalId (readonly and read-write) — guid index never built · Issue #9822 · IfcOpenShell/IfcOpenShell
Description: Version: ifcopenshell 0.8.5 (pip wheel, Linux x86_64, Python 3.12) Summary After converting a STEP file to a RocksDB store with ifcopenshell.convert_path_to_rocksdb, file.by_guid( Open Graph Description: Version: ifcopenshell 0.8.5 (pip wheel, Linux x86_64, Python 3.12) Summary After converting a STEP file to a RocksDB store with ifcopenshell.convert_path_to_rocksdb, file.by_guid( X Description: Version: ifcopenshell 0.8.5 (pip wheel, Linux x86_64, Python 3.12) Summary After converting a STEP file to a RocksDB store with ifcopenshell.convert_path_to_rocksdb, file.by_guid(<guid>) rais...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9822
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RocksDB stores: file.by_guid fails for every GlobalId (readonly and read-write) — guid index never built","articleBody":"**Version:** ifcopenshell 0.8.5 (pip wheel, Linux x86_64, Python 3.12)\n\n## Summary\n\nAfter converting a STEP file to a RocksDB store with `ifcopenshell.convert_path_to_rocksdb`, `file.by_guid(\u003cguid>)` raises `RuntimeError: Instance with GlobalId '\u003cguid>' not found` for **every** GlobalId in the model — while iteration (`by_type`) and `by_id` are complete and correct.\n\n## Reproduction\n\n```python\nimport ifcopenshell, os, shutil\n\nifcopenshell.convert_path_to_rocksdb(\"model.ifc\", \"model.converting\")\nos.rename(\"model.converting\", \"model.rdb\")\n\nf = ifcopenshell.open(\"model.ifc\")\ng = ifcopenshell.open(\"model.rdb\", readonly=True)\n\nguids = [e.GlobalId for e in f.by_type(\"IfcRoot\")]\nprint(len(guids)) # e.g. 43521\nprint(len(g.by_type(\"IfcRoot\"))) # 43521 — iteration complete, sets identical\nprint(g.by_guid(guids[0])) # RuntimeError: Instance with GlobalId ... not found\n```\n\nOn a real IFC4 model (43,521 IfcRoot entities): **43,521 of 43,521** `by_guid` calls raise; the same calls all succeed on the in-memory SPF file. The same happens without `readonly=True`.\n\n## Expected behavior\n\n`by_guid` on a store-backed file resolves GlobalIds the same as the in-memory SPF file (or the limitation is documented on the rocksdb API).\n\n## Notes\n\n- Found via a backend-parity rollout of a model-checking pipeline: the check stack resolved an entity by guid after enumerating it — iteration found it, `by_guid` did not.\n- `by_id` works correctly on the store, so a guid→id map built from one `by_type(\"IfcRoot\")` pass is a viable workaround (0.6 s for 43,521 entities).","author":{"url":"https://github.com/darellchua2","@type":"Person","name":"darellchua2"},"datePublished":"2026-10-06T06:08:15Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9822"}
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 /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:5f659951-02f7-7b9b-03c9-7f14412ede6a current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 946C:22CC3D:368E5D:494736:6B049DF9 html-safe-nonce 8fc48c7b14310f9940a432fdc3ca737a232067d6010f9ccffd1f81e0af7bf0bf visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDZDOjIyQ0MzRDozNjhFNUQ6NDk0NzM2OjZCMDQ5REY5IiwidmlzaXRvcl9pZCI6Ijg3MjMxNTM0MTExODY2NjI5MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac aed2ae788a5b6a78627cae9d662315055c4a3f21d4c5be155395f2c63a464568 hovercard-subject-tag issue:5723809965 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/9822/issue_layout twitter:image https://opengraph.githubassets.com/5667197773a3cce1ce0920622694924004c7d7ceae5f390a20284b84934a23ab/IfcOpenShell/IfcOpenShell/issues/9822 twitter:card summary_large_image og:image https://opengraph.githubassets.com/5667197773a3cce1ce0920622694924004c7d7ceae5f390a20284b84934a23ab/IfcOpenShell/IfcOpenShell/issues/9822 og:image:alt Version: ifcopenshell 0.8.5 (pip wheel, Linux x86_64, Python 3.12) Summary After converting a STEP file to a RocksDB store with ifcopenshell.convert_path_to_rocksdb, file.by_guid( og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username darellchua2 hostname github.com expected-hostname github.com None 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d turbo-cache-control no-preview go-import github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git octolytics-dimension-user_id 13692563 octolytics-dimension-user_login IfcOpenShell octolytics-dimension-repository_id 40473201 octolytics-dimension-repository_nwo IfcOpenShell/IfcOpenShell octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 40473201 octolytics-dimension-repository_network_root_nwo IfcOpenShell/IfcOpenShell turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 3fd14143b75b2af7b76bbd23b069867d091adfcc ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
Response headers:
Server github.com Content-Type text/html; charset=utf-8 Cache-Control max-age=0, private, must-revalidate
URLs of crawlers that visited me.