Skip to content

Conversation

@Trim
Copy link
Member

@Trim Trim commented Sep 15, 2021

This page will be useful for moderators to retrieve latest comments.

The limit is based on current date to limit number of comments retrieved
from the database. Only comments from the last 7 days will be available.

As it's the first page to index all comments with criteria only made on
created_at property, I added an index to the comments sql table.

As LinuxFr has between 1500 to 2000 comments each 15 days, I've decided
to paginate to 50 comments. As the number of comments in the atom feed is
linked to this pagination setting, I wanted it to be big enough so RSS readers
can take all comments with around 4 requests by day.

More on suivi request.

This page will be useful for moderators to retrieve latest comments.

The limit is based on current date to limit number of comments retrieved
from the database. Only comments from the last 7 days will be available.

As it's the first page to index all comments with criteria only made on
created_at property, I added an index to the comments sql table.

As LinuxFr has between 1500 to 2000 comments each 15 days, I've decided
to paginate to 50 comments. As the number of comments in the atom feed is
linked to this pagination setting, I wanted it to be big enough so RSS readers
can take all comments with around 4 requests by day.
@Trim Trim marked this pull request as draft July 6, 2024 19:42
@Trim
Copy link
Member Author

Trim commented Jul 6, 2024

I've just noticed the PR as draft because there was y conflict on the schema.rb file and I think I have to update the database migration file name with new prefix to follow existing ones.

@Trim
Copy link
Member Author

Trim commented Jan 16, 2026

Je ferme cette PR, parce qu'elle entre en conflit avec #383: elle ajoute une fichier de migration avec une date antérieur à ceux de #383

@Trim Trim closed this Jan 16, 2026
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.

2 participants