The Get Data time refers to the time required to obtain the queried object from the Dataset, which is generally related to the Dataset Type and the Dataset storage location. The time-consuming optimization can be started from the aspects of switching the Datasource, and the specific description is as follows:
- Dataset Type
Maps should use Simple Dataset as much as possible, and the use of CAD should be reduced. For example, when testing the level 3 road map data in a certain area, as shown in the figure below, the Line DatasetGet Data time is 14 ms, while the CAD DatasetGet Data time is 121 ms. The drawing time and Get Data time of Simple Dataset are obviously better.
- Switch Data source The data of Database-
type Datasource is stored in the database server, while the data of File Database is stored locally. The data acquisition, query and drawing time of the former is longer than that of the latter. As shown in the figure below, for the map diagnosis of the same road network data, the Database-type DatasourceGet Data time is 47 ms, while the File DatabaseGet Data time is 14 ms, and the latter is significantly more efficient. And the time consumption of Datasource in query and drawing is much higher than that of File Database. Therefore, under the same conditions, the map performance of text-based Datasource is better than that of Database-type Datasource.
Executive summary
Query time consuming optimization
Draw time consuming optimization