Added index to the EntryState table.
It will be used when retrieved a page of entries, thank to the denormalization of including the published attribute in the EntryState model.
View ArticleWhen retrieving paginated entries, set SQL order conditions on entry_states t...
This should help the database choose an execution query that gets results from entry_states as soon as possible, avoiding nested loops with entries. For the moment the entry creation datetime is no...
View ArticleAdded "entry_created_at" attribute to EntryState model.
Also included it in the entry_states table index which I expect will be used when retrieving paginated entries.
View ArticleAdded validations, default value and unit test for the entry_created_at...
Added validations, default value and unit test for the entry_created_at attribute of the EntryState model.
View ArticleUse the EntryState entry_created_at attribute to order entries, when...
Use the EntryState entry_created_at attribute to order entries, when retrieving unread entries from a feed or folder (including the "all subscriptions" special folder). The ordering priority is: -...
View ArticleUse find_each instead of each to update all EntryState instances during migra...
Trying to use "EntryState.all.each" means rails attempts to instantiate all EntryState objects, which will give an outofmemory error and the kernel will kill the ruby process. Using...
View ArticleFixed migrations.
The migrations I'm trying to apply use the EntryState model. In its current state it makes reference to the new "published" and "entry_created_at" attributes. This means that for the deployment to run...
View ArticleFix migration.
The current value for the already existing records in entry_states table for the new published and entry_created_at columns is set with a raw SQL update, instead of using ActiveRecord. Using AR is too...
View ArticlePerformance improvement when retrieving unread entries.
When retrieving unread entries, we already know that all entries in the list will be unread (it is guaranteed by the queries that get them from the DB). Therefore the step of looking at entry_states...
View ArticleIncluded aws-sdk-rails gem, which pulls v2 of aws-sdk.
Version 2 of aws-sdk introduces changes that break backward compatibility, so some changes will be necessary.
View Article