CF - QoQ vs Query

前端 未结 5 437
不知归路
不知归路 2021-01-18 23:57

I\'ve got a notion that calling a query of queries is faster than a query from database, because the slowdown is in the communication between cf and the db. Is this true.

5条回答
  •  耶瑟儿~
    2021-01-19 00:45

    I've found that using a q OF q can be MUCH faster than pulling DB's from a query.

    For example, I religiously use QoQ on sales reports. I have a sales report that would be pulled for a 1st quarter date range, that may show Sales figures by sales agent, and it may also show sales figures by product sold.

    In my DB, the same tables/fields would be used for both sections that would appear on the same report.

    I query the main table for my data based off the date range, and then I query those results to build each section of my report.

    I found this this method was faster on both servers with the DB local and remote.

提交回复
热议问题