Skip to content
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

SQL Dialect: Use datetime2 instead of datetime to save storage #1491

Open
ramonsmits opened this issue Jun 2, 2024 · 0 comments
Open

SQL Dialect: Use datetime2 instead of datetime to save storage #1491

ramonsmits opened this issue Jun 2, 2024 · 0 comments
Labels

Comments

@ramonsmits
Copy link
Member

Describe the feature.

Current SQL dialect uses datetime while datetime2 is recommended by Microsoft:

Use the time, date, datetime2 and datetimeoffset data types for new work. These types align with the SQL Standard.

The datetime2 type is supported since SQL Server 2008.

For outbox the schema can use DateTime2(0) as the precision is not required and only needed for outbox cleanup. This also saves 2 bytes (8 vs 6 bytes) for each row.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant