Skip to content

CP-49140: prepare for database optimizations #6181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

edwintorok
Copy link
Contributor

No description provided.

@psafont
Copy link
Member

psafont commented Dec 13, 2024

I'm tempted to suggest that this PR should be opened against master, it seems quite straightforward

Copy link
Contributor

@lindig lindig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mosty introduces type aliases; a preparation to change these types in the future.

Currently all of these are strings, but it may change:
* table
* db_ref
* field_name
* field
* uuid

This enables changing the `field` type from `string`
and avoiding costly serialization/deserialization when not needed.

No functional change.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
sexp_of is used when saving the schema, but of_sexp is unused.

This enables a future commit to store the deserialized value as a pair value,
and deserialization (unmarshaling) requires knowing the schema,
whereas serialization (marshaling) does not.
Thus we couldn't implement a generic `t_of_sexp` function, but with this change
we won't have to.

No functional change.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
@edwintorok edwintorok changed the base branch from feature/perf to master February 4, 2025 17:57
@edwintorok edwintorok marked this pull request as ready for review February 4, 2025 17:57
@edwintorok edwintorok enabled auto-merge February 4, 2025 17:58
@edwintorok edwintorok added this pull request to the merge queue Feb 4, 2025
Merged via the queue into xapi-project:master with commit a49d761 Feb 4, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants