FIREDAC Exploration (ii)

Source: Internet
Author: User
Tags dbx

and took the time to try Firedac, this would like to find some ways to let FIREDAC take data and dbx like fast, and ultimately failed, the DBX implementation is too fast, 3472 records (110 fields of the table), 0 milliseconds to grab over,

FIREDAC is almost 20 milliseconds faster. But FIREDAC has captured the data tfddatstable, know the number of records, (better than DBX, DBX Dbxreader is not aware of the number of records)

If you just let Fdcommand execute SQL and not Feach to tfddatstable, then it is 0 milliseconds (but not the data).

Besides

Fdmemtable1.attachtable (fddatstable, nil);
Fdmemtable1.open;

If the data is displayed in DBGrid, the FIREDAC is very fast, compared with Tdbxclientdatasetreader.copyreadertoclientdataset (Dbxreader, ClientDataSet1);

It should be said that with the data control, FIREDAC is very good.

In addition, try to use FIREDAC in Datasnap, although you can return n data sets with Tfdjsondatasets, but the speed feeling is not very good, need to be optimized. While using Dbxreader speed is very fast, it is still a bit inconvenient to return multiple result sets. You should have an advantage. If it is customary to return the entity class to the client in DATASANP, or if there is a DBX that has the advantage of speed, if the custom returns TDATASET, the client uses the DB control, which is more convenient with FIREDAC. Datasnap's core is based on the DBX framework, and the personal feel of the DBX framework is well designed, and for quite a long time, datasnap is not going to change anything unless EMB launches a new framework. In the present situation, EMB should not spend energy and time to launch new products. However, FIREDAC is also EMB the data Access layer component of the main push, and the better fit between datasnap is really a bit of a headache.

However, it is not really cool if EMB always let the program develop the program in the way that it handles the delta. Early ADO can also filter "add" and delete "Change" records, but no one in. NET is doing this, or it's like a Java framework.

Besides Datasnap can also pass the packing class, why not go further!?

FIREDAC Exploration (ii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.