Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Also deduplicate schema cache data when using the init_with interface #36529
I forgot to also apply the deduplication in
Another small improvement is that
Sorry both overlooking this in the previous PRs.
We already know since I've been running this change as a monkey patch for a while now: #35860 (comment)
However even non sharded applications should see a significant memory reduction because many columns are similar form one table to the other. For instance, for a single shard we have
Yeah, that I can't tell because we have a custom serialization format. That was a purely altruistic PR
But since columns are the vast majority of the schema cache payload, I wouldn't be surprised if it made a low double digit percentage difference (20-30% wet finger estimate).
I'd need to find an app using both Rails 6 and the standard format to benchmark the difference, unfortunately I have none of those.