On Friday, January 11, 2013 7:47:18 AM UTC+1, Srinivas Reddy T wrote:
>
>
>
>
> On Fri, Jan 11, 2013 at 12:05 PM, Mike <mike...@gmail.com <javascript:>>wrote:
>
>> My users will upload text documents ranging from hundreds to thousands of 
>> words.
>
> What kind of documents? pdf? word docs? excel?
>  
>
>>  At the moment I store the text in a TextField.  Is this going to cause a 
>> performance problem in the future or would it be better to store the text 
>> on the file system and put a file path in the data model?
>>
>  
> If you are uploading to a folder and storing the path in db, then when 
> somebody moves the folder, then you need to update the all the 
> corresponding paths in the database.When somebody deletes the folder, then 
> everything will be gone.You need to take care of handling duplicate names 
> too.
>
> Not a problem in this case because users will upload word, PDF and other 
docs, but I will extract the text content and discard the original file. 

Users will only see one document at a time so I'll follow Tim Chase's 
advise and assume its not an issue unless it becomes one in the future.

Thanks everyone for the replies.  I have to say I like this mailing list a 
lot.  It's a lot easier to ask questions here than on stack overflow.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/-sXoQh4f7WcJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to