How to avoid lag when creating a big map with a lot of parts?

How can i avoid lagging when creating a big map with a lot of parts? I want to only render in the parts that are within a certain distance of the player and unrender them when hes out of that distance.

use streaming under the workspace settings
Streaming doco.