Knowledge

Memory (storage engine)

Source 📝

125:
In MariaDB and before MySQL 5.6, MEMORY was used for internal temporary tables, e.g. to materialize the intermediate results of a query. However, MEMORY tables don't support BLOB and TEXT types, and the user may limit the total size of MEMORY tables and temporary tables. When an internal temporary
122:
MEMORY is designed to store data that must be accessed quickly, for example caches, or intermediate data that needs to be transformed before storing it to regular tables.
192: 93: 146: 114:
MEMORY writes table data in-memory. While the table structures are persisted on-disk, the rows in MEMORY tables are lost when MySQL stops.
417: 204: 330: 246: 70: 126:
table could not be created with the MEMORY engine, it had to be created on disk, which is slower. For this reason
438: 305: 453: 397: 315: 185: 127: 320: 310: 277: 178: 158: 382: 53: 392: 201: 97: 30: 134: 170: 448: 65: 41: 58: 443: 225: 82: 46: 432: 366: 164: 361: 262: 230: 25: 300: 345: 335: 340: 90: 34: 295: 267: 16:
Storage engine for the MySQL relational database management systems
387: 272: 86: 137:
engine is used in place of MEMORY for internal temporary tables.
100:
and MariaDB. Before the version 4.1 of MySQL it was called Heap.
174: 130:
implemented improvements to MEMORY to support BLOB and TEXT.
109:
Hash based, stored in memory, useful for temporary tables
410: 375: 354: 286: 255: 239: 218: 211: 64: 52: 40: 24: 186: 8: 19: 215: 193: 179: 171: 18: 94:relational database management systems 7: 205:free and open-source software (FOSS) 147:Comparison of MySQL database engines 418:Google LLC v. Oracle America, Inc. 14: 1: 133:In MySQL 8.0, by default the 107:command describes MEMORY as: 167:in the MariaDB KnowledgeBase 470: 161:in the MySQL documentation 71:GNU General Public License 159:The MEMORY Storage Engine 398:Oracle VM Server for x86 316:Java (software platform) 321:Maxine Virtual Machine 311:Image Packaging System 278:Oracle NoSQL Database 240:Programming languages 383:Java Desktop System 21: 393:Oracle Grid Engine 426: 425: 406: 405: 355:Operating systems 289:development tools 76: 75: 461: 439:Database engines 216: 195: 188: 181: 172: 106: 42:Operating system 22: 469: 468: 464: 463: 462: 460: 459: 458: 454:Oracle software 429: 428: 427: 422: 402: 371: 350: 288: 282: 251: 235: 207: 199: 155: 143: 120: 104: 96:, developed by 59:Database engine 17: 12: 11: 5: 467: 465: 457: 456: 451: 446: 441: 431: 430: 424: 423: 421: 420: 414: 412: 408: 407: 404: 403: 401: 400: 395: 390: 385: 379: 377: 373: 372: 370: 369: 364: 358: 356: 352: 351: 349: 348: 343: 338: 333: 328: 323: 318: 313: 308: 303: 298: 292: 290: 287:Frameworks and 284: 283: 281: 280: 275: 270: 265: 259: 257: 253: 252: 250: 249: 243: 241: 237: 236: 234: 233: 228: 226:OpenOffice.org 222: 220: 213: 209: 208: 200: 198: 197: 190: 183: 175: 169: 168: 162: 154: 153:External links 151: 150: 149: 142: 139: 128:Percona Server 119: 116: 83:storage engine 74: 73: 68: 62: 61: 56: 50: 49: 47:Cross-platform 44: 38: 37: 28: 15: 13: 10: 9: 6: 4: 3: 2: 466: 455: 452: 450: 447: 445: 442: 440: 437: 436: 434: 419: 416: 415: 413: 409: 399: 396: 394: 391: 389: 386: 384: 381: 380: 378: 374: 368: 365: 363: 360: 359: 357: 353: 347: 344: 342: 339: 337: 334: 332: 329: 327: 324: 322: 319: 317: 314: 312: 309: 307: 304: 302: 299: 297: 294: 293: 291: 285: 279: 276: 274: 271: 269: 266: 264: 261: 260: 258: 254: 248: 245: 244: 242: 238: 232: 229: 227: 224: 223: 221: 217: 214: 210: 206: 203: 196: 191: 189: 184: 182: 177: 176: 173: 166: 163: 160: 157: 156: 152: 148: 145: 144: 140: 138: 136: 131: 129: 123: 117: 115: 112: 110: 101: 99: 95: 92: 88: 84: 80: 72: 69: 67: 63: 60: 57: 55: 51: 48: 45: 43: 39: 36: 32: 29: 27: 23: 367:Oracle Linux 325: 219:Applications 132: 124: 121: 113: 108: 105:SHOW ENGINES 102: 78: 77: 26:Developer(s) 362:OpenSolaris 263:Berkeley DB 433:Categories 231:VirtualBox 301:GlassFish 256:Databases 135:TempTable 118:Use cases 346:VisualVM 336:NetBeans 212:Software 141:See also 449:MariaDB 411:Related 341:OpenJDK 331:Nashorn 306:HotSpot 91:MariaDB 66:License 35:MariaDB 326:Memory 296:DTrace 268:InnoDB 202:Oracle 165:MEMORY 98:Oracle 79:MEMORY 31:Oracle 20:MEMORY 444:MySQL 388:OCFS2 376:Other 273:MySQL 87:MySQL 81:is a 247:Java 103:The 89:and 85:for 54:Type 33:and 435:: 111:. 194:e 187:t 180:v

Index

Developer(s)
Oracle
MariaDB
Operating system
Cross-platform
Type
Database engine
License
GNU General Public License
storage engine
MySQL
MariaDB
relational database management systems
Oracle
Percona Server
TempTable
Comparison of MySQL database engines
The MEMORY Storage Engine
MEMORY
v
t
e
Oracle
free and open-source software (FOSS)
OpenOffice.org
VirtualBox
Java
Berkeley DB
InnoDB
MySQL

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.