40GB for 500,000 documents in a db with 1 view seems REALLY large... do these docs have attached files?
I've only had to restart http for design changes when working in SCXD - Single Copy Xpages Design...
Are you using a template? If not you should. Rather then restarting http you could also try to clean it and rebuild it. Maybe Build Automatically is off... or on and not working that well due to the document count.
The best practice is to design off a local template and refresh your demo app when making changes.