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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:49:55+00:00 2026-06-10T13:49:55+00:00

Hello again Stackoverflow… My organization is using SugarCRM for internal process handling. We are

  • 0

Hello again Stackoverflow…

My organization is using SugarCRM for internal process handling. We are in the process of importing approx. 27Gig worth of MsSQL data into select tables. As I was working along one of the tables called accounts_contacts is an intermediary table linking ‘accounts’ to ‘contacts’ (surprise). HEre is the table structure:

Name Type Collation Null Default
id varchar(36) utf8_general_ci No None
contact_id varchar(36) utf8_general_ci Yes NULL
account_id varchar(36) utf8_general_ci Yes NULL
date_modified datetime Yes NULL
deleted tinyint(1) Yes 0

Demo data:

0001391a-9d28-4bd0-9cec-f469cd244ca7 19135ac7-d47c-e111-b389-1cc1dee8bacd 1a135ac7-d47c-e111-b389-1cc1dee8bacd 0000-00-00 00:00:00 0

000262b6-a0ef-48de-b0f6-47db097b35d6 43080e24-a24d-e111-8cf6-1cc1dee8aa73 44080e24-a24d-e111-8cf6-1cc1dee8aa73 0000-00-00 00:00:00 0

00042aa7-39cd-4fcb-9f47-dc2b31c69a11 e9764a4d-d921-e111-8e18-1cc1dee8bacd ea764a4d-d921-e111-8e18-1cc1dee8bacd 0000-00-00 00:00:00

At the moment said table rests at approx. 55k rows.

My question: for speed and performance, at what point would this table warrent an index of contact_id and account_id?

  • 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-06-10T13:49:56+00:00Added an answer on June 10, 2026 at 1:49 pm

    I would say, a combined index on contact_id and account_id will give you immediate performance boost for joining accounts and contacts. The only reason for not adding an index to a table is the overhead of keeping the index in sync on table data inserts/updates. So if you have many writes to that link table, you should benchmark the effect on an index. Otherwise, if you mostly just read from that table – create an index.

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

Sidebar

Related Questions

Hello again Stackoverflow people! Assume I have these words: smartphones, smartphone I want to
Hello once again stackoverflow folks, this is really hard and it's been torturing my
Hello again, stackoverflow community! I'm working on writing a simple blog system in Rails,
Hello again stackoverflow... Once again I have a troublesome problem. I have a page
Hello again great knowledge masters of stackoverflow, once again the small coder apprentice tabaluga
Hello again stackoverflow, I have a question concerning List of Objects. I have tried
Hello again Stackoverflow community, Today I am trying to execute an application with commandline
hello again my question if it is possible to print microsencods using TimesSpan in
Hello again stackoverflow! So i build this script: <?php $xmlurl = 'http://api.ipinfodb.com/v2/ip_query.php?key=apikey&ip=127.0.0.100&timezone=false'; $xml =
Hello again codes masters, I'm stuck at this piece of codes for dropdown menu.

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.