Online Documentation for SQL Manager for MySQL

Data options


The Data Options section of the Database Registration Info dialog allows you to define options for data view. These options will be applied only to this database. Default settings for newly registered databases can be defined on the Grid | Data Options page of the Environment Options dialog.

 

Database Registration Info - Setting data options

 

 

Default limit options in table and view editors

 

Define the number of records to be selected on opening the Data tab of Table Editor and View Editor:

RadioButton Select all records from a table

RadioButton Select only ... records (you should set the number of records using the corresponding spinner control)

 

 

Advanced

 

CheckBox Use separate connections for each data view within a database

Select this option to disable creation of a separated connection for each data view. Enabling this option is recommended if maximum allowed number of connections is too low.

 

CheckBox Asynchronous query execution

Check this option to allow executing queries in background mode (asynchronously).

 

CheckBox Use transactions

Check this option to enable transactions for data in a grid.

 

CheckBox Perform data sorting on client in data view

If enabled, the data are sorted by SQL Manager for MySQL (on the client side). If this option is disabled, the data are sorted on MySQL server with the help of the ORDER BY clause used in SQL query.

 

CheckBox Perform data filtration on client in data view

If enabled, the data are filtered by SQL Manager for MySQL (on the client side).

If disabled, SQL filter is used in data view. In this case filtering is performed on the MySQL server with the help of the WHERE clause used in SQL query.

 

With the Perform data sorting on client in data view option enabled, sorting is performed by means of the grid. Otherwise a click on the column header for sorting causes reloading all table data with the selected field in the ORDER BY expression of the SELECT statement.

If the table contains a huge amount of records and the Select only N records mode (see the Default limit options in table and view editors group) is used, this mode is more preferable (e.g. all the records having values starting with "A" will be displayed, and not those which were in originally opened N records).

 

All above-mentioned is related to the Perform data filtration on client in data view option as well. If the filter is applied to a table containing a great number of records, it is strongly recommended to enable this option - in this case the filter will be applied to all table/view records, not only to those which are displayed at the present moment.

 

 

Default Grid Mode

 

RadioButton Load all records

The grid loads all records from a dataset. This option increases the grid performance by reloading only changed dataset records when updating. In this mode all features (automatic sorting, filtering and summary calculations) are available.

 

RadioButton Load visible records

The grid loads only a fixed number of dataset records into memory. This option minimizes dataset loading time. The automatic sorting, filtering, summary calculations are not supported in this mode.

 

The Default grid mode options allow you to define the grid mode which will be used by default.

With the Load all rows option enabled, when loading data, all the records are loaded into grid buffers. In this mode opening the tables with many records may take a considerable amount of time. But in this case you can make use of some advantages: in the filter drop-down list the column headers are displayed with the values for quick filtering; it is possible to open several sub-levels at the same time when viewing data in master-detail view, etc.

In case opening and other operations with an object consisting of many records takes sufficient time, the Load visible rows mode should be used instead. It can be set individually for each table and saved between sessions (can be set via the context menu of the grid).