ToMemory

ToMemory[obj]

returns an in-memory version of the out-of-core object obj.

Details

  • Supported objects obj include:
  • otabout-of-core Tabular object
    audioout-of-core Audio object
    videoout-of-core Video object
  • In-memory version of large objects increases the memory in use as well as the notebook size. It is generally not recommended to have in-core representation of very large objects.

Examples

open allclose all

Basic Examples  (2)

Create a Tabular object backed by a relational database:

Bring it into memory:

Perform operations on the SQL-backed Tabular object before bringing it into memory:

Scope  (2)

Audio object:

Inspect the out-of-core resource location:

This creates an in-memory Audio object:

Video object:

Inspect the out-of-core resource location:

The byte count of this out-of-core object is very small and does not increase with object size:

This creates an in-memory Video object:

Byte count of the in-memory version of the object is much larger and increases with larger resources:

Properties & Relations  (1)

Operations that are supported by out-of-core Tabular objects generally commute with ToMemory:

Wolfram Research (2025), ToMemory, Wolfram Language function, https://reference.wolfram.com/language/ref/ToMemory.html.

Text

Wolfram Research (2025), ToMemory, Wolfram Language function, https://reference.wolfram.com/language/ref/ToMemory.html.

CMS

Wolfram Language. 2025. "ToMemory." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ToMemory.html.

APA

Wolfram Language. (2025). ToMemory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ToMemory.html

BibTeX

@misc{reference.wolfram_2024_tomemory, author="Wolfram Research", title="{ToMemory}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/ToMemory.html}", note=[Accessed: 15-January-2025 ]}

BibLaTeX

@online{reference.wolfram_2024_tomemory, organization={Wolfram Research}, title={ToMemory}, year={2025}, url={https://reference.wolfram.com/language/ref/ToMemory.html}, note=[Accessed: 15-January-2025 ]}