title: How to know how much memory is used by a query in clickhouse
body: <p>I am trying to test performance of clickhouse to get sense how much memory i need for a dedicated server.
  Currently I'm using PostgreSQL in production and now I want to migrate to clickhouse, so I inserted some of production data into a clickhouse server locally and executing the most used queries on production on clickhouse.
  But I do not know how much memory does clickhouse use to execute these queries.</p>