levo

Database Systems

Indexes and links between tables

  • 3 things to know
  • AS Unit 1
Start revising · £5/month

Overview

Index in a database, how an index speeds up a search and how a one-to-many relationship is implemented in a relational database.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is an index in a database?

Key term

Give one drawback of adding an index to a field.

Key term

Which fields are worth indexing?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is an index in a database?

    Model answer

    An index is a separate structure holding the values of one field in sorted order, each paired with the position of the record it came from.

  2. 2

    Explain how an index speeds up a search.

    Model answer

    The database searches the small sorted index rather than reading every record, then jumps straight to the stored position of the matching rows.

  3. 3

    Give one drawback of adding an index to a field.

    Model answer

    The index takes extra storage and must itself be updated on every insertion, deletion and change, which slows those operations down.

  4. 4

    Which fields are worth indexing?

    Model answer

    Fields that are searched or sorted on frequently are worth indexing, particularly those used in a query condition or to join tables.

  5. 5

    Is the primary key of a table indexed?

    Model answer

    The primary key of a table is indexed: a database indexes the primary key automatically, because it must check uniqueness on every insertion and look records up by it constantly.

  6. 6

    What must happen to an index when a new record is inserted?

    Model answer

    The new field value has to be placed in its correct sorted position in the index along with the record's location, before the insertion is complete.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Hardware: Architecture, Memory and Storage
Networks and Data Transmission
Logic Gates and Boolean Algebra
Data Representation and Data Types

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

Fetch, , execute.
decodecompilestore

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

A bit is a single binary digit.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Database Systems, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.