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

  • Home
  • SEARCH
  • 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 913881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:37:46+00:00 2026-05-15T17:37:46+00:00

Our real estate application has a table, Events, which has historically been linked to

  • 0

Our real estate application has a table, Events, which has historically been linked to the Homes table via an Event.homes_id column.

Recently, for the first time, we added an event type which is not connected to a home, but a realtor. The question: is it good practice to now add a realtor_id column to the Events table? Something in me rebels at the idea of having two columns, home_id and realtor_id for every record, one of which will always be null for any given record. My boss says it’s efficient and avoids the overhead of creating new tables. What are the rights and wrongs of this situation?

A corollary to the above question: part of our reluctance to create new tables is the fact that we’re using CakePHP, and so it becomes harder to have absolute control over multiple linked tables via SQL joins. (Setting Cake’s recursive property to maximum reduces the application’s speed to a crawl.) Does, and should, working with Cake affect database design considerations? Or are we just working with Cake wrong?

  • 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-15T17:37:46+00:00Added an answer on May 15, 2026 at 5:37 pm

    Something in me rebels at the idea of
    having two columns, home_id and
    realtor_id for every record, one of
    which will always be null for any
    given record. My boss says it’s
    efficient and avoids the overhead of
    creating new tables. What are the
    rights and wrongs of this situation?

    Well, you’re right, it probably is less efficient than optimal. However, adding another column (an INT, no less) that will be null 50% of the time isn’t going to affect your overall database efficiency.

    OTOH, it’s going to take you a bit of effort to restructure your application. By just adding this column, you’re effectively putting in a hack.

    I think that’s acceptable for this situation, although you may not like the aesthetics of it. Hey — nobody likes hacks. It increases “technical debt”. But google around for that term and you’ll see that lots of people are saying to embrace technical debt, because it lets you continue moving forward, rather than trying to zero in on the perfect solution (which will escape you, despite best efforts).

    It’s a business decision — is the aesthetic of your schema and codebase worth the cost (your hourly rate * # hours to “properly” fix it)? In this situation, I’d say it’s probably not.

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

Sidebar

Related Questions

Our real estate website sends email notifications when properties come on the market matching
Our software manages a lot of data feeds from various sources: real time replicated
We're not doing real web development. We get our HTMLs from our designers, and
Our ASP.NET 3.5 website running on IIS 6 has two teams that are adding
Our application is interfacing with a lot of web services these days. We have
We have a large real-estate of existing SSRS 2008 reports that we are still
We work with a lot of real estate, and while rearchitecting how the data
Our team is growing, but we're also growing specialized. We've already been using ticketing/bug
Our company is currently writing a GUI automation testing tool for compact framework applications.
Our team develops distributed winform apps. We use ClickOnce for deployment and are very

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.