nginx – Hugo Performance: Thousands of post subdirectories within public directory

I’m going to host a lot of Hugo posts as page bundles(directories) on a ZFS filesystem on a FreeBSD machine.
So there’s going to be 100,000 directories(page bundles consist of images and an index.md not more than roughly 1MB each) put straight into my public/ directory as subdirectories and served via Nginx.

public/p/post1
public/p/post2
...
public/p/post100000

I was wondering what’s going to be the catch here? Will there be performance issues here if I put everything directly under public/ directory? Will Nginx perform well locating each post among thousands of dirs?

Read more here: Source link