Displays the free holes in databases.

Introduction

OrientDB keep the free space as “holes”. To remove the holes you have to compact the database using the compact database command.

Syntax

  1. show holes

Example:

  1. orientdb> show holes
  2. Found 20 holes in database demo:
  3. +----------------------+----------------------+
  4. | Position | Size (in bytes) |
  5. +----------------------+----------------------+
  6. | 49907 | 87 |
  7. | 181183 | 71 |
  8. | 272858 | 150 |
  9. | 623022 | 137 |
  10. | 198122 | 85 |
  11. | 519971 | 108 |
  12. | 2267766 | 160 |
  13. | 369795 | 82 |
  14. | 1017483 | 128 |
  15. | 736590 | 92 |
  16. | 1052774 | 117 |
  17. | 934513 | 71 |
  18. | 1180103 | 91 |
  19. | 1137256 | 75 |
  20. | 1242670 | 81 |
  21. | 1685483 | 124 |
  22. | 46420 | 107 |
  23. | 46143 | 66 |
  24. | 815670 | 88 |
  25. | 24839 | 79 |
  26. +----------------------+----------------------+
  27. | Total hole size | 1,95Kb |
  28. +----------------------+----------------------+

This is a command of the Orient console. To know all the commands go to Console-Commands.