diff --git a/src/main.rs b/src/main.rs
index ea3b2043ae8e816b30b58c0057ac263e7bb75fa2..1ae37dad7e9f48658132f7ab5fb35ffc58b41a58 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -176,7 +176,7 @@ fn read_from_db(config: HashMap<String, String>, predictor: &mut CompositePredic
             match client {
                 Ok(mut c) => {
                     let mut count = 0;
-                    match c.query("SELECT query FROM public.logs_partitioned ORDER BY time DESC LIMIT 100000", &[]) {
+                    match c.query("SELECT query FROM public.logs_partitioned ORDER BY time DESC LIMIT 1000", &[]) {
                         Ok(rows) => {
                             for row in rows {
                                 let query: &str = row.get(0);