X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d7f4a7dac6b611ad92ec95d247b962f8bf23dd61..cc564e2f319bb267884998c7243d179320aa0327:/nominatim/index.c diff --git a/nominatim/index.c b/nominatim/index.c index b6dd7236..128ba994 100644 --- a/nominatim/index.c +++ b/nominatim/index.c @@ -127,13 +127,13 @@ void nominatim_index(int rank_min, int rank_max, int num_threads, const char *co } PQclear(res); - res = PQexec(thread_data[i].conn, "set enable_seqscan = false"); + /*res = PQexec(thread_data[i].conn, "set enable_seqscan = false"); if (PQresultStatus(res) != PGRES_COMMAND_OK) { fprintf(stderr, "Failed disabling sequential scan: %s\n", PQerrorMessage(conn)); exit(EXIT_FAILURE); } - PQclear(res); + PQclear(res);*/ nominatim_exportCreatePreparedQueries(thread_data[i].conn); } @@ -270,7 +270,7 @@ void nominatim_index(int rank_min, int rank_max, int num_threads, const char *co usleep(1000); // Aim for one update per second - if (sleepcount++ > 500) + if (sleepcount++ > 2000) { rankPerSecond = ((float)rankCountTuples + (float)count) / MAX(difftime(time(0), rankStartTime),1); fprintf(stderr, " Done %i in %i @ %f per second - Rank %i ETA (seconds): %f\n", (rankCountTuples + count), (int)(difftime(time(0), rankStartTime)), rankPerSecond, rank, ((float)(rankTotalTuples - (rankCountTuples + count)))/rankPerSecond);