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 6382923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:35:08+00:00 2026-05-25T02:35:08+00:00

I have a table for real estate properties in which features for a real

  • 0

I have a table for real estate properties in which features for a real estate property are stored in serialised array. Example, a house can have wifi, pool, garden and so on other miscellaneous features. These features form a list, array with values, and are serialised and stored in table column named features. When I have to display these features I fetch the serialise array, unserialise it and display it. Now, using this table, how can I search for a house which has Wifi AND Pool? Secondly, this structure was good till the time search was out of scope but I am willing to modify it if there are strong reasons, apart from search, to change it.

Update
The feature wifi can be spelled as “Wifi” or “WiFi available” or “equipped with wifi” or anything. So wifi is a keyword and features are actually input by property owners so similar features can differ. Hence the idea was to save features in a serilised array

  • 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-25T02:35:08+00:00Added an answer on May 25, 2026 at 2:35 am

    PHPs serialize format (or JSON) are no native data types in SQL. But XML for example would be. But that’s often likewise overkill.

    An alternative to the separate tables approach would be a CSV list of present features (native to SQL thanks to FIND_IN_SET).

    Otherwise you can use some guesswork to prefilter the search query with WHERE options REGEXP 's:4:"Pool";b:1' when you want to keep the serialized data blob. (You would need to know the exact serialization scheme for each property you are looking after.)

    For data sets that do not concern the database I consider that appropriate even. But since you are using the DB mostly for searching jus that data blob, you should reconsider.

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

Sidebar

Related Questions

Say I have a table with real estate listings. Every listing can be either
I am building a real estate website. I have a table for properties (i.e.
Our real estate application has a table, Events, which has historically been linked to
I have two MySQL tables: house and features . This is for a real
I have 30 tables, each representing a different neighborhood. Each table holds real estate
I have a table like this (basic example, not the real thing): FKEY |
I have a real estate website that has several categories. And i want the
I have a table on a SQL Server 2000 database, which I want copied
Let's say I have a table like this (this is just a simplified example,
I have a table with a field which contains strings in my MySQL database.

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.