I’ve seen it’s possible to make a connection between Mathematica and MySQL databases using Input Needs["DatabaseLink“] and conn = OpenSQLConnection[JDBC["MySQL(Connector/J)", "yourserver/yourdatabase"], "Username" -> "yourusername", "Password" -> "yourpassword"] (in case anyone wants to give it a try). Documentation of DatabaseLink here, by the way.
Does anyone have experience using Mathematica in this way, probably to analyze data contained in the database? Are there obvious drawbacks (speed, memory needed, etc.)?
I recently used databases to speed up a
Manipulate[]block.Without the database, essential data from a 150 MB ASCII file were required in memory for access. As a result, the
Manipulate[]block slowed down. It’s possible thatPackedArray[]would have helped. I didn’t investigate this.With the database, the speed of access of individual datasets is slightly slower than a
Select[]block, but the memory footprint is down by a factor of nearly 10.I’d say go for it.