> db.FileScan_files.ensureIndex({md5:1},{unique:true})
> db.FileScan_files.insert({md5:""})
> db.FileScan_files.insert({md5:""})
md5 is a bad name for mongodb
MongoDB speaks JavaScript, so utilize JS naming conventions.
> db.FileScan_files.ensureIndex({md:1},{unique:true})
> db.FileScan_files.insert({md:""})
> db.FileScan_files.insert({md:""})
E11000 duplicate key error index: filescan.FileScan_files.$md_1 dup key: { : "" }
Subscribe to:
Post Comments (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
Disk is out of space [root@reyotest stat]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 231825...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...
No comments:
Post a Comment