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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:42:44+00:00 2026-05-26T15:42:44+00:00

Well, my friend told me I should start using InnoDB for my database, so

  • 0

Well, my friend told me I should start using InnoDB for my database, so I tried for my first time. And I have a problem with deleting records/indexes/fields/tables. Whenever I try to delete a record, I have to go to ALL the relative records, delete those and then go back to delete my original record. And I can’t delete indexes at all! Is there an easier way to do this (since when I’m gonna run in in PHP, it won’t delete anything) or should I just jump back to MyISAM? Which of these is better in your opinion?

  • 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-26T15:42:45+00:00Added an answer on May 26, 2026 at 3:42 pm

    If you like deleting stuff a lot, InnoDB might not be for you. InnoDB is much, much stricter than MyISAM. It’s faster when doing queries (SELECT, SHOW etc), but slower when doing updates (UPDATE, INSERT etc).

    InnoDB’s CASCADE is magic, but be very carefull. It’s also very slow (because the db engine itself will check all constraints). If you’re delering records that cascade into other deletes that cascade into other updates that cascade into other deletes etc etc, you’ll be waiting a long time.

    If you’re deleting in dev and are annoyed by InnoDB’s constraints, you might find SET FOREIGN_KEY_CHECKS = 0; very helpful:

    SET FOREIGN_KEY_CHECKS = 0;
    /* do all kinds of dangerous deletes, eg. delete everything in the db */
    SET FOREIGN_KEY_CHECKS = 1;
    

    Don’t use it in the app itself, or be absolutely sure that you won’t break any dependencies.

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

Sidebar

Related Questions

A friend of mine claims that calls to Debug.Print() as well as first-chance exception
Well, this is my first post here and really enjoying the site. I have
A friend of mine and I have been using Google Docs for a while
So I have a problem. Or rather my friend has a problem, since I
hi friend i have to make comment page for user as well as me
Well, after a long time writing .net programs in C# I started to feel
well i have this messages table with sample values like these: msg_id recipient_id read
I am thinking about different solutions for one problem. Assume we have K sorted
Today one of my friends told me that the following code compiles well on
What is the collation usage for a database? Well for HTML UTF-8 I know

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.