[FOLDER] => [File1, File2, File3, ... FileN]
You have to check if a certain File is a already in a certain Folder
(only the name-strings, not the actual content!).
=> file_is_in_folder = !collection.find_one({:folder =>
folder_name, :files => file_name}).nil?
This seems to take a really long time for large (10.000+) collections
of filenames.
Is there any way that this could be speed up (aka: do indexes help on
embedded arrays).
If not: would putting the filenames as documents and setting an index
on foldername+filename help?
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>