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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:27:10+00:00 2026-06-08T18:27:10+00:00

In my program I have very few inserts, and any which are run frequently

  • 0

In my program I have very few inserts, and any which are run frequently are not needed instantly and therefore have been changed to INSERT DELAYED. Should I go through my code and see which fields are referenced in the WHERE clause and add an index for each of them? If so what type of index do I use? Is it just inserts that are slowed down?

Also can I use these indexes on any data type?

  • 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-08T18:27:11+00:00Added an answer on June 8, 2026 at 6:27 pm

    There are two major places where we can consider indexing: columns referenced in the WHERE clause and columns used in JOIN clauses. In short, such columns should be indexed against which you are required to search particular records.

    • Only index those columns that are required in WHERE and ORDER BY
      clauses. Indexing columns in abundance will result in some
      disadvantages.
    • Use the NOT NULL attribute for those columns in which you consider
      the indexing, so that NULL values will never be stored.
    • Use the –log-long-format option to log queries that aren’t using
      indexes. In this way, you can examine this log file and adjust your
      queries accordingly. Also slow-query log.
    • The EXPLAIN statement helps you to reveal that how MySQL will execute
      a query. It shows how and in what order tables are joined. This can
      be much useful for determining how to write optimized queries, and
      whether the columns are needed to be indexed.

    This blog is good.

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

Sidebar

Related Questions

I have a very large program which I have been compiling under visual studio
I have a small Python program consisting of very few modules (about 4 or
I have a program (jhead) that compiles with very few tweaks for both Windows
I have a very simple question. I have a program that accepts an integer
I have a very simple test program, running on Solaris 5.8: #include <stdio.h> #include
I have a very basic program in C++ compiled in VS 11 Beta on
I have a very small program: public static void main(String[] args) { Queue<String> queue
I have a program in C using Solaris with VERY ancient compatibility it seems.
I have a GLSL shader program running my iPhone app (it's a very very
It's a very simple program. I have a function defined on the top and

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.