Project

General

Profile

« Previous | Next » 

Revision cd3136ac

Added by Cherian Mathew about 7 years ago

set default limit in sql queries to 15000

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/container/CdmSQLContainer.java
23 23

  
24 24
    DatabaseMetaData databaseMetaData;
25 25

  
26
    public static final int DEFAULT_LIMIT = 5000;
26 27
    boolean checkPropertyIdCase = false;
27 28

  
28 29
    public CdmSQLContainer(QueryDelegate delegate) throws SQLException {
29 30
        super(delegate);
30 31
        databaseMetaData = CdmSpringContextHelper.getCurrent().getDatabaseMetaData();
32
        setPageLength(DEFAULT_LIMIT);
31 33
    }
32 34

  
33 35
    public static CdmSQLContainer newInstance(String tableName) throws SQLException {

Also available in: Unified diff