I have a shapefile with more than 180,000 rows. Whenever I want to apply the field calculator (e.g. for $id or $area), QGIS crashes (waiting to respond). My PC has 32GB RAM.
Any idea what I can do?
I have a shapefile with more than 180,000 rows. Whenever I want to apply the field calculator (e.g. for $id or $area), QGIS crashes (waiting to respond). My PC has 32GB RAM.
Any idea what I can do?
Use the field calculator from the main window.
Adding/deleting columns with attribute tables open is super-slow.
This may well be a matter of patience. I've used the field calculator ($x and $y) on points layers with over 10 million features. Using a 16BG RAM PC, I also get the apparent crash of 'waiting to respond', but it still goes onward, and does provide results after a while (in my case, after a couple of hours).
I've used a SpatiaLite format, which runs much quicker than the CSV format that this data was originally in.
I came across the correct answer! Don't use the attribute table but rather use the field calculator directly from the main window. Worked well forme! Took only a minute or so. Solved, thanks!