Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

adnanerlansyah403's avatar

whether to create a table in the database for only one data or row is worth it for control the other data

Hello everyone, I have a question or maybe need a suggestions. About controlling the other data with one row of table. So for example I have a table pages for controlling the navbar list. Like what's the status of that page's, is active or not,the content of it and etc. Is that worth it for the cases like that. Usually what's you'll did for cases like this guys?, Because I saw many people doing that thing on their tutorial.

0 likes
1 reply
vybeauregard's avatar

If you know there's only ever going to be a single row in that table, storing that data in a database seems like overkill. However, it doesn't sound like we have the whole story. If you have an idea of how frequently this data gets updated, that could help you devise a storage strategy.

Please or to participate in this conversation.