@Override public int update() { session.commit(true); session.getUser().checkAdmin(); Database db = session.getDatabase(); if (table != null) { analyzeTable(session, table, sampleRows, true); } else { for (Table table : db.getAllTablesAndViews(false)) { analyzeTable(session, table, sampleRows, true); } } return 0; }
if (tablesToAnalyze != null) { for (Table table : tablesToAnalyze) { Analyze.analyzeTable(this, table, rows, false);
private void analyzeIfRequired(Session session) { if (nextAnalyze == 0 || nextAnalyze > changesSinceAnalyze++) { return; } changesSinceAnalyze = 0; int n = 2 * nextAnalyze; if (n > 0) { nextAnalyze = n; } int rows = session.getDatabase().getSettings().analyzeSample / 10; Analyze.analyzeTable(session, this, rows, false); }
private void analyzeIfRequired(Session session) { if (nextAnalyze == 0 || nextAnalyze > changesSinceAnalyze++) { return; } changesSinceAnalyze = 0; int n = 2 * nextAnalyze; if (n > 0) { nextAnalyze = n; } int rows = session.getDatabase().getSettings().analyzeSample / 10; Analyze.analyzeTable(session, this, rows, false); }
private void analyzeIfRequired(Session session) { if (nextAnalyze == 0 || nextAnalyze > changesSinceAnalyze++) { return; } changesSinceAnalyze = 0; int n = 2 * nextAnalyze; if (n > 0) { nextAnalyze = n; } int rows = session.getDatabase().getSettings().analyzeSample / 10; Analyze.analyzeTable(session, this, rows, false); }
private void analyzeIfRequired(Session session) { if (nextAnalyze == 0 || nextAnalyze > changesSinceAnalyze++) { return; } changesSinceAnalyze = 0; int n = 2 * nextAnalyze; if (n > 0) { nextAnalyze = n; } int rows = session.getDatabase().getSettings().analyzeSample / 10; Analyze.analyzeTable(session, this, rows, false); }
@Override public int update() { session.commit(true); session.getUser().checkAdmin(); Database db = session.getDatabase(); for (Table table : db.getAllTablesAndViews(false)) { analyzeTable(session, table, sampleRows, true); } return 0; }
@Override public int update() { session.commit(true); session.getUser().checkAdmin(); Database db = session.getDatabase(); for (Table table : db.getAllTablesAndViews(false)) { analyzeTable(session, table, sampleRows, true); } return 0; }