Click here to Skip to main content
15,888,590 members
Home / Discussions / C#
   

C#

 
GeneralRe: Refactoring versus Performance Pin
Rob Philpott14-Jul-14 22:18
Rob Philpott14-Jul-14 22:18 
GeneralRe: Refactoring versus Performance Pin
Agent__00714-Jul-14 22:24
professionalAgent__00714-Jul-14 22:24 
GeneralRe: Refactoring versus Performance Pin
Rob Philpott14-Jul-14 22:31
Rob Philpott14-Jul-14 22:31 
GeneralRe: Refactoring versus Performance Pin
Agent__00714-Jul-14 22:33
professionalAgent__00714-Jul-14 22:33 
AnswerRe: Refactoring versus Performance Pin
Pete O'Hanlon15-Jul-14 3:45
mvePete O'Hanlon15-Jul-14 3:45 
GeneralRe: Refactoring versus Performance Pin
Agent__00715-Jul-14 4:29
professionalAgent__00715-Jul-14 4:29 
GeneralRe: Refactoring versus Performance Pin
Pete O'Hanlon15-Jul-14 4:32
mvePete O'Hanlon15-Jul-14 4:32 
GeneralRe: Refactoring versus Performance Pin
Agent__00715-Jul-14 4:35
professionalAgent__00715-Jul-14 4:35 
AnswerRe: Refactoring versus Performance Pin
Joe Woodbury15-Jul-14 9:14
professionalJoe Woodbury15-Jul-14 9:14 
Questionremove labels X628 personnel in c # Pin
Member 971624414-Jul-14 14:12
Member 971624414-Jul-14 14:12 
AnswerRe: remove labels X628 personnel in c # Pin
OriginalGriff14-Jul-14 20:33
mveOriginalGriff14-Jul-14 20:33 
AnswerRe: remove labels X628 personnel in c # Pin
Dave Kreskowiak15-Jul-14 2:10
mveDave Kreskowiak15-Jul-14 2:10 
QuestionHow to create lucene.net index in database Pin
Tridip Bhattacharjee14-Jul-14 3:59
professionalTridip Bhattacharjee14-Jul-14 3:59 
AnswerRe: How to create lucene.net index in database Pin
Eddy Vluggen14-Jul-14 5:29
professionalEddy Vluggen14-Jul-14 5:29 
Questionhelp C# AND SQL Server Pin
ozanadiaa14-Jul-14 3:39
ozanadiaa14-Jul-14 3:39 
AnswerRe: help C# AND SQL Server Pin
Pete O'Hanlon14-Jul-14 3:42
mvePete O'Hanlon14-Jul-14 3:42 
AnswerRe: help C# AND SQL Server Pin
Dilan Shaminda14-Jul-14 7:07
professionalDilan Shaminda14-Jul-14 7:07 
QuestionRe: help C# AND SQL Server Pin
ZurdoDev14-Jul-14 8:55
professionalZurdoDev14-Jul-14 8:55 
AnswerRe: help C# AND SQL Server Pin
PIEBALDconsult14-Jul-14 9:16
mvePIEBALDconsult14-Jul-14 9:16 
AnswerRe: help C# AND SQL Server Pin
Dave Kreskowiak14-Jul-14 10:35
mveDave Kreskowiak14-Jul-14 10:35 
QuestionRegarding locking trick at the time of indexing data Lucene.net Pin
Tridip Bhattacharjee14-Jul-14 3:31
professionalTridip Bhattacharjee14-Jul-14 3:31 
i got a code which talk about locking trick at the time of indexing data with Lucene.net

private static FSDirectory _directoryTemp;
private static FSDirectory _directory
{
get
{
if (_directoryTemp == null) _directoryTemp = FSDirectory.Open(new DirectoryInfo(_luceneDir));
if (IndexWriter.IsLocked(_directoryTemp)) IndexWriter.Unlock(_directoryTemp);
var lockFilePath = Path.Combine(_luceneDir, "write.lock");
if (File.Exists(lockFilePath)) File.Delete(lockFilePath);
return _directoryTemp;
}
}

but the code looks not very good. can anyone tell me why the above code is checking directory is locked or not....when directory gets locked?

see this line of code if (IndexWriter.IsLocked(_directoryTemp)) IndexWriter.Unlock(_directoryTemp); if directory is locked then it unlock it but what will happen if any index writer is indexing data and directory gets unlock then what will happen? looking for best practice. thanks
tbhattacharjee

AnswerRe: Regarding locking trick at the time of indexing data Lucene.net Pin
Pete O'Hanlon14-Jul-14 3:44
mvePete O'Hanlon14-Jul-14 3:44 
QuestionGuidance for indexing data by Lucene.net Pin
Tridip Bhattacharjee14-Jul-14 1:42
professionalTridip Bhattacharjee14-Jul-14 1:42 
AnswerRe: Guidance for indexing data by Lucene.net Pin
Pete O'Hanlon14-Jul-14 2:05
mvePete O'Hanlon14-Jul-14 2:05 
QuestionCould someone answer me this Pin
Member 1094467914-Jul-14 0:25
Member 1094467914-Jul-14 0:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.