# How to disable statistics in stardog 7.0.1

**URL:** <https://community.stardog.com/t/how-to-disable-statistics-in-stardog-7-0-1/1992>\
**Category:** Bug\
**Created:** [October 9, 2019, 6:42am UTC](https://community.stardog.com/t/how-to-disable-statistics-in-stardog-7-0-1/1992 "2019-10-09T06:42:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pavel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/pavel/32/18_2.png) [@pavel](https://community.stardog.com/u/pavel)\
**Post date:** [October 9, 2019, 10:17am UTC](https://community.stardog.com/t/how-to-disable-statistics-in-stardog-7-0-1/1992/7 "2019-10-09T10:17:22Z")

</div>

Thanks, we'll try to reproduce the issue. Re: your question, statistics is built when you load a fresh database with `db create` and optimize it later after updates with `db optimize` (though it can be disabled for the latter with `-o optimize.statistics=false`). If you simply start the server, it should not rebuild statistics.

I must add, however, that selectivity statistics is the main source of information for the cost-based query optimiser so disabling it like that may have negative effects on query performance.

Cheers,  
Pavel

---

_[View the full topic](https://community.stardog.com/t/how-to-disable-statistics-in-stardog-7-0-1/1992)._
