Best practice for database archives in searches
Options
vnihoul77
Member ✭
Hi everyone!
The issue
Currently, we're storing logs in the database, so thousands of new entries are added every hour.
We also need to be able to perform fast searches in these log entries.
Most of the time, we don't need to perform searches in entries older than 10 days.
I am wondering what would be the best practice in order to archive old entries to make the search faster.
- Move the oldest entries out to another database (not convenient for maintainability)
- Create a true/false type index on an "is_archived" field (but would it be equally efficient as the first solution?)
Thanks 😉
Comments
-
Daily Background task to move entries older than 10 to back up tables. Use fuzzy search on the last ten days' data for search.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback