Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6603979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:05:24+00:00 2026-05-25T19:05:24+00:00

Apologies in advance if this question has already been asked, but I really don’t

  • 0

Apologies in advance if this question has already been asked, but I really don’t know how to search for the problem I have.

I’m developing a hotel booking and reservation management system with the intention of working with multiple clients, and it is expected that some clients will have different requirements, which include additional fields beyond the standard found in the booking response form (name, address, email, post code et cetera).

To accomplish this, I’ve created an “options” field that stores these additional fields and their attendant values as serialized data. However, the client wants those fields to be searchable. While this is possible, this quite clearly isn’t the optimal way of storing data that needs to be searched.

Also, the table in question is of InnoDB format in MySQL.

About the only thing I can think of is moving these additional fields into a separate table, but that presents a lot challenges to the reading and writing process of bookings.

What is an optimal way of storing this kind of irregular data for the purposes of searching?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:05:24+00:00Added an answer on May 25, 2026 at 7:05 pm

    Your problem isn’t really a database problem but rather an issue of how to support multiple clients and their requirements in a single program.

    The first thing you need to decide is whether multiple clients will be supported within a single instance of your program, or whether each client will have their own instance.

    If each client has their own instance, then you can maintain the common codebase separately and customize each client’s instance as required. It may take some planning to produce a system in which changes made to the common codebase are correctly inherited by the customized versions, but in the end each client will get exactly what they want.

    If you’re taking the multi-tenanted approach then you need to decide in advance the exact degree to which each client will be able to customize their system. You then provide for that customization in your database and application structure. At the simplest level, this allows each client to store their identifying information and a logo in a table someplace (possibly their own CSS link to really give the application a customized look).

    In the case of “extra fields”, this can be handled in several ways. One is to simply put 10 extra VARCHAR fields on the table in question, and allow each client to “name” these fields as they see fit (possibly with TYPE specifiers that your application will use to coerce the VARCHAR data if needed). However many of the columns they’ve named are shown (with the correct prompt) where appropriate in the user interface. This approach has the benefit that, once set up, you won’t have any additional work to do per client.

    Another approach would be to allow each client to have an additional 1 to 1 related table that stores the extra fields. In this case you can correctly name and type the fields in the database. The disadvantage is that to the extent you allow the client to freely choose what these fields are, you’ll have to modify your user interface to “know” about each individual client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, apologies if this question has been asked before but I couldn't find
I apologize if this has already been asked a different way but I couldn't
If this question has already been asked I appologies, please point me in the
It feels like this question has been asked before, but no questions seem to
I'm a python newbie so I apologize in advance if this question has been
I apologize if this question was asked already before but I could not find
This is a very wide-ranging/vague question, but here goes. Apologies in advance. The app
Apologies in advance for the long-winded question. I'm really a database programmer, but have
A highly similar question has been asked already, and it has partly solved my
All, Apologies in advance - this question might be too open-ended for SO. Anyway...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.