A3.4.1Types of databases as approaches to storing data
0/10
A3.4 Alternative databases and data warehousesA3.4.1

Types of databases as approaches to storing data

Outline the different types of databases as approaches to storing data

AHL≈ 50 minCommand term: OutlineFree lesson

In this lesson

  • Outlining how NoSQL, cloud, spatial and in-memory databases store data, and how each differs from a traditional relational database
  • Choosing a suitable database model for a real-world scenario and justifying the choice
  • Outlining the main advantages and limitations of each model

LearnBeyond relational tables

Relational databases store data in related tables with a fixed schema and are queried with SQL. They suit most business data, but some systems need something different.

    0 of 2

    LearnNoSQL databases

    NoSQL (“not only SQL”) covers databases that do not use fixed relational tables. The most common kind is the document database.

      0 of 5

      LabTables or documents?

      An online shop sells very different products. Add a new kind of product, and open a product page, in each storage model.

      Add the headphones and open a product page, in both models.

      PRODUCT
      ProductIDTypeNamePriceAuthorPagesSizeColourRAM_GBCPUScreen_in
      P1BookThe Quiet Coast14.99L. Moreau312NULLNULLNULLNULLNULL
      P2T-shirtLogo tee19.5NULLNULLMNavyNULLNULLNULL
      P3LaptopAir 13899NULLNULLNULLNULL16M-413.3

      REVIEW(ReviewID, ProductID, Customer, Stars): 3 rows, linked by the foreign key ProductID.

      Simplified: real relational designs might use a table per product type instead, which needs a new table for each new type. Add the headphones and open a product page in both models to complete this activity.

      LearnCloud databases

        0 of 3

        LearnSpatial databases

          0 of 3

          LearnIn-memory databases

            0 of 3

            SummaryWhere each model is used

            ModelTypical real-world uses
            NoSQLE-commerce product catalogues, social media posts and feeds, content management
            CloudSoftware as a service (SaaS) applications, managed database services for organisations without their own servers
            SpatialGeographic information systems (GIS), delivery and navigation apps, planning and environmental mapping
            In-memoryReal-time analytics (e.g. fraud checks on card payments), caching web sessions, online gaming, processing sensor data

            CheckWhich model fits best?

            Choose the most suitable database model for each system.

            1. A news site's comment threads, where each comment can have replies, reactions and attachments of different kinds
            2. A small company with no servers and no IT staff that needs a database for its booking app
            3. A council map showing which homes lie inside flood-risk zones
            4. A stock exchange matching buy and sell orders within microseconds

            CheckQuick check

            Which statement about in-memory databases is correct?

            ExamWorked exam answer

            An online clothing shop sells items with very different attributes (sizes, materials, care instructions, bundles). Outline one reason why it might store its product catalogue in a document (NoSQL) database.

            [2]
              Try writing your own answer first.

              ReviewMistakes examiners see

              Misconception

              “NoSQL databases cannot be queried.” They have their own query languages, and many support SQL-like queries; the name means “not only SQL”.

              Misconception

              Treating “cloud” as a data model. A cloud database can be relational or NoSQL; “cloud” describes where it is hosted and who manages it.

              Exam tip

              When choosing a model, name the feature of the scenario that decides it (varied data, location, speed, no IT staff) and the property of the model that meets it.

              Exam practiceExam-style questions

              4 questions · 10 marks. Answer each one first, then mark it yourself against the markscheme. Your answers are saved in this browser only.

              Scenario

              A city runs a bike-sharing scheme. Riders use an app to find and unlock bikes parked around the city. The app shows each rider's profile and trip history, a live map of available bikes, and a leaderboard of the riders with the most kilometres this week, updated after every trip.

              (a)Outline · AO2[2]

              Outline why a spatial database is suitable for showing riders the available bikes nearest to them.

              (b)Outline · AO2[4]

              The leaderboard is kept in an in-memory database. Outline one advantage and one disadvantage of this choice.

              (c)Outline · AO2[2]

              The city has no database administrators. Outline why it might use a cloud database provided as a managed service.

              (d)Outline · AO2[2]

              Rider profiles are stored in a document database, with each rider's trips embedded in that rider's document. Outline one disadvantage of this design for the scheme's managers.

              0 / 10

              0 of 4 questions marked. Mark every question to see your total.

              Exam-style questions written for Praxis IB in the format of the 2027 specimen papers. They are not IB past-paper questions.