You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use application level timestamps to maintain
dialect compatibility between different SQL variations. We truncate timestamp to granularity of days for privacy reasons.
There are other ways to achieve created_at and updated_at timestamps with only using SQL query or using DB procedures etc. But we do this at application level, to keep sql query simple(having this truncate logic and procedures in sql is complex) and for dialect compatibility, which means this same query will more or less work b/w postgres/mysql/sqlite etc. whereas for other methods we might have to rely on exact db sql syntax.
What are the new columns used for?
They aren't used for any specific rn, mainly useful for audit purpose. Could be used by hosting providers to "expire data" if lets say a user hasn't paid in last 2 years.
It might also be useful if spiral wants to host a test-vss-instance for developers to try out, but doesn't want to store data forever. (for e.g. we can delete data older than ~2 weeks.)
We use application level timestamps to maintain
dialect compatibility between different SQL variations.
We truncate timestamp to granularity of days for privacy
reasons.
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
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.
We use application level timestamps to maintain
dialect compatibility between different SQL variations. We truncate timestamp to granularity of days for privacy reasons.