this post was submitted on 06 Nov 2024
13 points (93.3% liked)

Programming

17672 readers
52 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Hello, I am building a dashboard where users can add their own user scripts. I at least want to keep the last 100 log lines stored somewhere so that the user can check them later.

I thought of using the backend's sqlite database but that would slow down the performance of other querys that are much more high priority.

top 2 comments
sorted by: hot top controversial new old
[โ€“] Deckweiss@lemmy.world 7 points 1 month ago* (last edited 1 month ago)

Whats your website stack?

How do you host it?

Share the link to your site or an example log so that we can check out what kind of data needs storing.

There are several ways to store some data either on the users end or on the backend, with different pros and cons. But which one you should pick is highly dependent on the stack and the details of your needs.

[โ€“] synae@lemmy.sdf.org 2 points 1 month ago

Probably object storage, like s3 or similar