Simplifications
#2915
Replies: 1 comment 1 reply
-
WDYT? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Saving components in one table
Add a class attribute
base_schema
toComponent
/Base
. This attribute will determine which table the sub-components are saved into, and also, which fields get their own column in that table. This will avoid having too many tables in thedatabackend
.For example:
Adding additional fields to
Component
table for filteringcontext
branch
Component
Use
REGISTRY
to load schemas quicklyWe already have a registry in
superduper.base.base.REGISTRY
. We should use this in order to avoid loading schemas from a different place.This function in
metadata.py
looks up from a table. In order to avoid this, the classes need to be defined in advance. This could be a configuration or otherwise.Beta Was this translation helpful? Give feedback.
All reactions