Matlab Database Queries

Posted on 2007-09-28
Last Modified: 2016-02-10
We have Windows XP SP2 computer with a Matlab 7.3.0 (R2006b) application that uses an ODBC connection to query a MySQL database (on the same computer) for large financial time series (about 250,000 records with a 'price' and a 'dateAndTime' fields on each query).

When the query is executed inside Matlab the response time is about 5 to 6 times longer than when the same query is executed directly on MySQL's Query Browser.

Similar results are obtained when moving the database to a different computer.

Is there a way to improve the performance of the Matlab application?
Question by:jmokrauer
    1 Comment
    LVL 22

    Accepted Solution

    Assuming that you are running the exact same query in both places, my guess is that Matlab just can't pull the result set of out ODBC fast enough.  Maybe Matlab is pulling the result records out one at a time instead of in a more efficient buffered mode.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    This article describes some very basic things about SQL Server filegroups.
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now