On my database file of 21.5 GB even a simple query to count the number of rows doesn't work. When limiting the query to a small number it works fine:
select * from Table limit 30
When trying a query on the whole table it gets stuck. Is there is any optimization I can do so I can query the whole data set?