Using MySQL databases in Mathematica

后端 未结 2 745
挽巷
挽巷 2021-02-05 20:29

I\'ve seen it\'s possible to make a connection between Mathematica and MySQL databases using Input Needs[\"DatabaseLink\"] and conn = OpenSQLConnection[JDBC[\

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 20:53

    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 that PackedArray[] 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.

提交回复
热议问题