Main Content

Import Large Data Programmatically

Import large data from relational database into MATLAB®workspace using command line

You can use aDatabaseDatastoreobject to import large data into the MATLAB workspace. To create this object, use thedatabaseDatastorefunction. After importing your data into the MATLAB workspace, you can use tall arrays to analyze it. Also, the MapReduce programming technique provides you with greater flexibility in analyzing large data.

To split an SQL query into multiple SQL page queries and import large data in chunks, use thesplitsqlqueryfunction. You can access large data by using Database Toolbox™ functions or a parallel pool (requires Parallel Computing Toolbox™).

Functions

expand all

databaseDatastore Datastore for data in database
hasdata Determine if data inDatabaseDatastoreis available to read
preview Return subset of data fromDatabaseDatastore
read Read data inDatabaseDatastore
readall Read all data inDatabaseDatastore
reset ResetDatabaseDatastoreto initial state
createConnectionForPool Initialize parallel pool using database connection
splitsqlquery Split SQL query using paging

Topics