Skip to content

Dynamic configuration for big number of schemas #456

@inf-initely

Description

@inf-initely

Currently, we host a big number of schemas (about ~700) which are equal in structure and version.
The problem is when we try to configure the tables. Even with simpler configuration:

Tables: []core.Table{
	{
		Name:   "news",
		Schema: "99_99_99_9999",
		Columns: []core.Column{
			{
				Name:       "user_id",
				ForeignKey: "99_99_99_9999.users.id",
				Primary:    true,
				Array:      false,
				Type:       "integer",
			},
		},
	},
},

when duplicated to 700, will of course just wasting memory than needed when in actuality, what you really need to change is
the schema's name.

Same problem with configuring RoleTable.

What would you like to be added:

New option to load configuration dynamically in runtime. That way, end-user can exchange memory usage with cpu usage.

Or, at least a way to solve problem for end-user with big number of schemas that want to reduce memory usage, if this is not possible.

Why is this needed:

For cases like above, and also when you need to dynamically load or change configuration in runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions