On 2015-04-07 20:49:21 -0700, sudalai wrote:
> Hi,
> 
>       Ya you are right, ext4 allows more directory entries(more than 32000)
> but we limited the number of files insides the directory to 32000 to get
> better performance. Sorry i'm not mentioned that in my post.

There's actually a restriction to ~64k *subdirectories* in a
directory. But none on the number of files. And with the b-tree
directories ext3/4 have been using for a long while accessing a
directory entry is going to be cheaper than accessing a dirent in a
subdirectory.

So I think you're just prematurely optimizing at the wrong end.

Greetings,

Andres Freund


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to