Repository navigation
Conversation
Table schemas were cached on disk as JSON written by bcdata's own parser, so a change to how schemas are parsed would meet files parsed by an earlier version for up to 30 days, and a cached schema could be up to 30 days older than the data it describes (downloads are coerced to the schema since #283). Schemas are now kept in memory only, shared by all BCWFS instances for the life of the process. Each table is still described once per process and in batches of up to SCHEMAS_PER_REQUEST, on the session's existing connection. get_schema returns copies, as reading the cache did. Old schema files in the cache folder are ignored. The capabilities cache, now the only file in it, is written and read as utf-8 rather than in the platform's default encoding. A cached file that is not utf-8 (written by an earlier version, eg in cp1252 on Windows) is requested again. Co-Authored-By: Claude <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Schema caching dropped - schema requests are only 1 additional request per download (which should not be significant), the cache could lag the data, and the cache is additional data to maintain.
Schemas are now kept in memory only, shared by all BCWFS instances for the life of the process. Each table is still described once per process and in batches of up to SCHEMAS_PER_REQUEST on the session's existing connection. get_schema returns copies, as reading the cache did. Old schema files in the cache folder are ignored.
The capabilities cache, now the only file in it, is written and read as utf-8 rather than in the platform's default encoding. A cached file that is not utf-8 (written by an earlier version, eg in cp1252 on Windows) is requested again.