Skip to main content

Delete

  • Chapter
  • First Online:
A Course in In-Memory Data Management
  • 1515 Accesses

Abstract

The delete operation terminates the validity of a given tuple. It stores the information in the database that a certain item is no longer valid. This operation can either be of physical or logical nature. A physical delete operation removes an item from the database so that it is no longer physically accessible. In contrast, a logical delete operation only terminates the validity of an item in the dataset, but keeps the tuple still available for temporal queries [Pla09]

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 74.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.00
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Reference

  1. H. Plattner, in A common database approach for OLTP and OLAP using an in-memory column database, ed. by U. Çetintemel, S. Zdonik, D. Kossmann. SIGMOD Conference (ACM, Newyork, 2009), pp. 1–2

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hasso Plattner .

Self Test Questions

Self Test Questions

 

  1. 1.

    Delete Implementations

    Which two possible delete implementations are mentioned in the course?

    1. (a)

      White box and black box delete

    2. (b)

      Physical and logical delete

    3. (c)

      Shifted and liquid delete

    4. (d)

      Column and row deletes

  2. 2.

    Arrays to Scan for Specific Query with Dictionary Encoding

    When applying a delete with two predicates, e.g. firstname \(=\) ‘John’ AND lastname \(=\) ‘Smith’, how many logical blocks in the IMDB are being looked at during determination which tuples to delete (all columns are dictionary encoded)?

    1. (a)

      1

    2. (b)

      2

    3. (c)

      4

    4. (d)

      8

  3. 3.

    Fast Delete Execution

    Assume a physical delete implementation and the following two SQL statements on our world population table:

    1. (A)

      DELETE FROM world_population WHERE country \(=\) ‘China’;

    2. (B)

      DELETE FROM world_population WHERE country \(=\) ‘Ireland’;

    Which query will execute faster? Please only consider the concepts learned so far.

    1. (a)

      Equal execution time

    2. (b)

      A

    3. (c)

      Depends on the ordering of the dictionary

    4. (d)

      B

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Plattner, H. (2013). Delete. In: A Course in In-Memory Data Management. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-36524-9_10

Download citation

Publish with us

Policies and ethics