Another important thing to verify is that, your process is not leaking file descriptors or handles, well that's a tedious thing to find out, but you can use lsof command to check how many open file handles is owned by a particular process inUNIX or Linux.
0 or 1 => mandatory = false and many = false
1 => mandatory = true and many = false
0 or more => mandatory = false and many = true
1 or more => mandatory = true and many = true
//execute query to find the user nodevar luceneQuery ="@usr\\:username:\"johndoe\"";var userStoreReference ="user://alfrescoUserStore";var usersResultList =
search.luceneSearch(userStoreReference, luceneQuery);//get the user node and change enable propertyvar userInTheUserStore = usersResultList[0];
userInTheUserStore.properties["usr:enabled"]=false;
userInTheUserStore.save();
You can't use text columns in an equal operation of a WHERE clause. If you are using SQL Express or SQL Server 2005, change your column type from text to either varchar(max) or nvarchar(max)