php insert not working

11 views
Skip to first unread message

Raxit Sheth

unread,
Apr 10, 2012, 9:05:28 AM4/10/12
to mongod...@googlegroups.com
Hi


Behaviour is random, But when i do db.collName.remove() and
immediately after few insert is not working
It is not showing any error but from shell, find command returns no documents.

However after php insert's
var_dump($db->lastError()); returns below

{ ["n"]=> int(0) ["connectionId"]=> int(22) ["err"]=> NULL ["ok"]=> float(1) }

after few minutes the same code works fine (without any changes !!!)

Raxit

Raxit Sheth

unread,
Apr 10, 2012, 9:07:57 AM4/10/12
to mongod...@googlegroups.com
my collection name is admin_post
Is there any thing due to "admin_ " string in the name it is treating
differently ?

Raxit

Steve Francia

unread,
Apr 10, 2012, 3:55:01 PM4/10/12
to mongod...@googlegroups.com

There are no issues with 'admin_' as part of the collection name.

I'm not quite sure of what you are asking in the first question. If you could be more explicit in the steps that would be helpful to follow what you are doing.
Reply all
Reply to author
Forward
0 new messages