Plan scalable Recent Gamer Updates feed storage #3
Labels
No labels
automated
code-quality
component: admin dashboard
component: backend
component: billing
component: content management
component: faqs
component: game genres
component: game lists
component: game reviews
component: game search
component: games
component: internal notifications
component: platforms
component: security
component: tests
component: user api
component: user badges
component: user blogs
component: user consoles
component: user favorites
component: user friends
component: user notifications
component: user profiles
component: user site notifications
component: user wishlists
component: web design
dependencies
php
priority
high
priority
low
priority
medium
security-hotspot
source: codex
source: sonarqube
status
awaiting feedback
status
backlog
status
done
status
in progress
status
in queue
status
in review
status
needs codex review
status
needs investigation
status
wontfix
type: bug
type: documentation
type: feature
type: improvement
type: regression
type: task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MyVideoGameList/myvideogamelist.com#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Recent Gamer Updates feed needs a scalable Laravel storage strategy so the site can keep public activity pages fast without blindly deleting historical user activity.
The original issue proposed trimming or truncating the old feed table, but later comments clarified that people do use the feed and that historical records should ideally be preserved. In the current Laravel checkout, feed entries are written to Spatie activity log table with
log_name = gamer_updates, displayed through theRecentGamerUpdatespresenter, and surfaced on the homepage/sidebar while a dedicated Recent Gamer Updates page is still being rebuilt. This issue tracks deciding and implementing the long-term storage, indexing, archival, and query strategy for that feed.Scope
activity_logrecords used forgamer_updates./recent-gamer-updateslisting page and pagination.Acceptance Criteria
gamer_updatesactivity entries continue to render with user, avatar, game, platform, activity type, and timestamp data.Test Coverage Required
gamer_updatesrecords render expected card/list data.vendor/bin/pint --dirtybefore closing the issue.Progress Checklist
gamer_updatesactivity entries are written from game-list status changesRecentGamerUpdatespresenter exists/recent-gamer-updatesexists/recent-gamer-updatespage workOriginally posted by josh87
Maybe you can trim it down by date?
@josh87 Yeah, I was thinking about how to do it. I was thinking just select 100,000 rows, truncate, then reinsert them. I have to remember which resets the auto-increment back to 1.
Originally posted by josh87
Well
truncatewill drop all records from a table and resetauto_increment.I am not sure the value it would add to remove this data from the database on a periodic schedule. The only time I have noticed it going slow is when loading the Edit User page from the administrative dashboard side of things. I'd like to think this is a low priority issue at the moment.
We need to do some research and see if this page/functionality is really even used by anyone.
So people definitely do look at this page (I asked in our Discord server), so we'll need to figure out how to handle the feed. Ideally I don't want to remove any records but at the same time, the table is massive.
Implement Handling of The Feed (Database Table and Related Pages)to Plan scalable Recent Gamer Updates feed storage