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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:35:54+00:00 2026-05-21T20:35:54+00:00

I am wondering if a table or particularly a heap file with a clustered

  • 0

I am wondering if a table or particularly a heap file with a clustered index created on one of the attributes is sorted on that attribute.Is there a difference between a sorted heap file and a heap file with clustered index ?

  • 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-21T20:35:55+00:00Added an answer on May 21, 2026 at 8:35 pm

    Is there a difference between a sorted heap file and a heap file with clustered index ?

    Sorted heap file is a heap (array-like structure) with the elements ordered. This is what MyISAM does with ALTER TABLE … ORDER BY … or PostgreSQL does with CLUSTER. Inserting a new record into such a table breaks the order.

    Clustered index is a B-Tree. Inserting a new record keeps the order.

    The records in a clustered table are not necessarily physically ordered (in a sense that the record with a higher value of the clustering key has a higher offset in a file or tablespace).

    Rather, the records are logically ordered: you can traverse from one record to another following B-Tree links (or direct links between pages in case of a B+Tree), but this still implies random disk seeks because the pages linked logically do not necessarily reside near each other on the disk.

    Some databases, Oracle for instance, allow reading the indexes in physical order (using an operation known as INDEX FAST FULL SCAN) which does not maintain the logical order but is faster because of the benefits or sequential access to the pages.

    There is no such thing as a “heap file with a clustered index”: a table organization is either heap or clustered.

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

Sidebar

Related Questions

I am wondering if the aspnet_Users table is always sorted (by UserName) even if
I'm wondering what a better design is for the intersection table for a many-to-many
I was wondering if data types in a a literal create table statement, executed
I was wondering if InnoDB would be the best way to format the table?
I want to setup a Method dispatch table and I am wondering if it
I have this selector: $(table.details tbody tr:not(.details)) But I'm wondering why this inner table
I have a posts table for my reddit-clone site and I'm wondering whether I
I'm working on a table of links within a site using iframes. I'm wondering
I know that snapshot isolation would fix this problem, but I'm wondering if NOLOCK
I am wondering how I can order posts in my PostController#index to display by

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.