by kraada » Fri Feb 13, 2009 11:54 am
Once it's clustered once it should cluster faster subsequent times. 26 hours strikes me as quite a long time even for a database that large. Are you running low on free space on that drive? In order for the cluster to complete with maximum efficiency you need twice as much free space on the drive as the size of the database. So a 3.5M hand database is roughly 35G so you'd want 70G of free space. (This is a limitation from PostgreSQL, not PT3 and unfortunately there isn't much we can do to get that number any lower.) If you have less than that, the less you have the longer the cluster will take. I don't have an exact conversion table though so I can't say how much longer it'd take for 60G of free space vs 10G of free space (though obviously 10G of free space would take longer). The vacuum and analyze shouldn't take much time at all; maximum of 10 minutes each, I'd expect less than 5 though. The speed of updating the cache depends on the speed of your machine partly. If you're having the free space issue, updating the cache will definitely take a lot less time. The last time I updated the cache on a 2M hand database on my machine (quad core q6700, 8G ram) it took about an hour and a half. Just so you have a benchmark. If your computer is slower and there's less ram it'll probably take longer, exactly how much is hard to say, though.