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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:56:00+00:00 2026-05-22T20:56:00+00:00

I am currently building a website with multiple pages and in order to beautify

  • 0

I am currently building a website with multiple pages and in order to beautify the site’s URLs I am using addresses like http://mydomain.com/category/item-name

I am using MySQL tables so in order to fetch the current item from my MySQL I have two options:

1) Add the item’s ID to the title: http://mydomain.com/category/28745/item-name (where 28745 is the ID in the table). That way I can run a query SELECT * FROM products WHERE ID=28745 . Easy approach but the problem is that the URL is a bit uglier.

2) Fetch the item using a text search. In that case I will use the item-name as a FULLTEXT (using MyISAM) so the query will be SELECT * FROM products WHERE item-name=some-text .

I am trying to find out if there are any downsides to the second approach. Does using FULLTEXT instead of an Index on an INT field cost in performance? Does it really matter to search engines if the URL consists of the ID and is a bit uglier?

Thanks,

Meir

  • 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-22T20:56:01+00:00Added an answer on May 22, 2026 at 8:56 pm

    You don’t need a FULLTEXT index, that’s the first thing.
    A FULLTEXT index is an index used for searching of the database of text. What you’re doing is exact matching, you’re not searching for entries.

    That said, what’s the downside of having an index over textual column over integer one?

    First thing is the size. Integers require less storage space. Their indexes require less storage space. In order to store an integer, you need 4 bytes (2^32 is the range). To store a single ASCII char you need 1 byte. So, a word that’s containing over 4 letters will take up more space than number 4.5 billion.

    Second thing is that you’re forced to use MyISAM if you want to have fulltext indexes for some reason.
    There are advantages and disadvantages of MyISAM over InnoDB and that’s a topic well-covered here at SO.

    In short – unless you have 100k+ categories and growing and unless you need advanced searching options for your categories – don’t use a fulltext index, use the regular one.
    Table engine is up to you to decide.
    For small amount of data it will all work without any issue.

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

Sidebar

Related Questions

I am currently building a multiple pages form using $_SESSION , everything has been
I'm currently building a scrolling share bar for this dev website: http://ossian.statenews.com/~matt/statenews-redesign-1.1/docs/article.html How do
I am currently building a website in codeigniter that is one page site, basically
Im building a website/webapp that uses sockets.io Currently if the user is using safari
I am currently building an ecommerce website using ASP .Net MVC3. At the end
I'm currently building a website using jquery. I've found a script which will cause
I'm currently building a multilingual website using PHP and MySQL and am wondering what
i am currently building a website which i am using a custom font for.
I'm currently building a website using static HTML/CSS. I can put in a PHP
I'm currently building a website with Django and want to host user bio style

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.