News combit Dev Blog

Huge Designer Speed-Up for Large Databases

Posted: Friday, July 14, 2017 | 2 comment(s)
 
Historically, List & Label has always been working without a database in the background. During the years, we've added powerful databinding to the components, however at the core, the principle stayed the same: your application (or the databinding layer) passes all available data before opening the Designer.

For large databases, this means passing some hundred tables including their field structure and sort orders. When using relations, tables could even appear multiple times in the structure, as base tables or 1:1 related tables. You quickly end up with literally millions of API calls and thousands of database queries. While we paid a visit to treeview performance before, this was merely a cure for the symptoms. The start up speed of the Designer was still way slower than desirable.

With LL23, we finally are able to implement a feature we've been thinking of for quite a long while – delay loaded data for the Designer. This feature works for all implementations that use a data provider, i.e. for .NET and C++ applications. To give you some numbers I used the Adventure Works SQL Server demo database as a reference. This is what I got on my workstation:

 

Measured Variable

LL22

LL23

Process Memory

67,5 MB

41,8 MB

Number of DB Queries

630

2

Time for Opening the Designer

5,7 s

0,9 s

 

The remaining two queries are required to get information on key fields and relations.

This tremendous start up performance increase now allows to pass whole databases where a selection had to be made before. This saves you from offering your own preselection dialogs or having to recompile your application with "just one more table". For your users, the psychological effect will be great – a cut in the start up delay of more than 80% as in my test case above is absolutely remarkable for them. And your database admin will also love this update.

To give you an impression of the tremendous impact of this change look at the two movies below, one for LL22 and another one for LL23. It shows the startup on a colleague's machine for the Adventure Works database, this time not using a local server (as for my data in the table above) but using a SQL Server on our intranet. In the "Diagnostic Tools" window on the right hand side you see the memory footprint including CLR heaps, thus a larger number than my task manager data in the table above, the queries that hit the database and the CPU usage. The Designer opens after 13,8 seconds for LL22. As for LL23, see for yourself.

Startup time with List & Label 22:


Startup time with List & Label 23:


The Web Designer will profit even more from this feature – before, we had to transfer the whole field information from the server to the client, resulting in both huge spikes in server CPU and network bandwidth usage. Now, we just have to pass some basic information about the tables and relations and delay the expensive requests until they're really needed. In a couple of weeks, I'll blog more on the new Web Designer's performance on a related topic – stay tuned.




Author: Jochen Bartlau
Head of Development List & Label

Jochen Bartlau leads the development at combit as Managing Director. He's a Microsoft .NET enthusiast driving innovation & agile project management. The mobile devices geek who used to be a physicist in his first life loves to spend his spare time with his family.


  

RSS
combit Development BlogRSS
What’s this blog for?
A place to share updates about the ongoing development of our products. General musings on the software industry included.
Archive
June 2021 (1)
May 2021 (1)
April 2021 (2)
March 2021 (1)
February 2021 (2)
January 2021 (1)
December 2020 (2)
November 2020 (1)
October 2020 (2)
September 2020 (1)
August 2020 (2)
July 2020 (1)
June 2020 (1)
May 2020 (2)
April 2020 (2)
March 2020 (2)
February 2020 (1)
January 2020 (1)
December 2019 (1)
November 2019 (2)
October 2019 (2)
September 2019 (2)
August 2019 (2)
July 2019 (2)
June 2019 (2)
May 2019 (1)
April 2019 (0)
April 2019 (1)
March 2019 (1)
February 2019 (1)
January 2019 (1)
December 2018 (1)
November 2018 (2)
October 2018 (4)
September 2018 (4)
August 2018 (2)
July 2018 (2)
June 2018 (2)
May 2018 (1)
April 2018 (1)
March 2018 (1)
February 2018 (2)
January 2018 (1)
December 2017 (1)
November 2017 (2)
October 2017 (3)
September 2017 (3)
August 2017 (2)
July 2017 (2)
June 2017 (1)
May 2017 (2)
April 2017 (1)
March 2017 (1)
February 2017 (1)
January 2017 (2)
December 2016 (1)
November 2016 (1)
October 2016 (4)
September 2016 (5)
August 2016 (2)
July 2016 (2)
June 2016 (3)
May 2016 (2)
April 2016 (3)
March 2016 (3)
February 2016 (1)
January 2016 (2)
December 2015 (2)
November 2015 (1)
October 2015 (4)
September 2015 (5)
August 2015 (2)
July 2015 (2)
June 2015 (2)
May 2015 (1)
April 2015 (2)
March 2015 (1)
February 2015 (1)
January 2015 (1)
December 2014 (2)
November 2014 (1)
October 2014 (1)
September 2014 (2)
August 2014 (1)
July 2014 (2)
June 2014 (1)
May 2014 (2)
April 2014 (1)
March 2014 (2)
+1 800 256 3608 (toll-free North America only)