Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323820

Summary: [Query2] Clean build needs to be done for Index building
Product: [Modeling] EMF Reporter: saurav sarkar <saurav.sarkar1>
Component: Query2Assignee: Project Inbox <emf.query2-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ashw.kumar
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Patch for the fiix
none
Fix for the bug wayne.beaton: iplog+

Description saurav sarkar CLA 2010-08-27 09:23:43 EDT
Build Identifier: 

Everytime clean build needs to be triggered for the building of the index.
The index building mechanism needs to be improved.

Reproducible: Always
Comment 1 saurav sarkar CLA 2010-08-27 09:24:55 EDT
Build Id : 20100218-1602
Comment 2 saurav sarkar CLA 2010-08-27 09:28:37 EDT
(In reply to comment #0)
> Build Identifier: 
> Everytime clean build needs to be triggered for the building of the index.
> The index building mechanism needs to be improved.
> Reproducible: Always

To be more precise, this happens in the demo perspective of the Query2.Whenever the index needs to be built or updated.The clean build in the IDE needs to be triggered before a user executes a query in the demo perspective.
Comment 3 Ashwani Kr Sharma CLA 2010-08-27 09:39:54 EDT
(In reply to comment #2)
> (In reply to comment #0)
> > Build Identifier: 
> > Everytime clean build needs to be triggered for the building of the index.
> > The index building mechanism needs to be improved.
> > Reproducible: Always
> 
> To be more precise, this happens in the demo perspective of the Query2.Whenever
> the index needs to be built or updated.The clean build in the IDE needs to be
> triggered before a user executes a query in the demo perspective.


The indexing should be done on IDE start only as background job. If user triggers the query meanwhile it should wait till indexing is complete.

The indexed resources should be checked for timestamp, to identify if re-indexing is needed.

The indexer also have mechanism of dumping. It should be used to quickly load index on restart, if the timestamp of resources have not changed
Comment 4 saurav sarkar CLA 2010-09-27 06:30:54 EDT
Created attachment 179617 [details]
Patch for the fiix

Now the Build happens on the projects with Index nature on IDE startup.
Comment 5 saurav sarkar CLA 2010-09-27 08:41:20 EDT
Created attachment 179633 [details]
Fix for the bug

Attaching the patch
Comment 6 Ashwani Kr Sharma CLA 2010-10-04 04:14:22 EDT
Patch was not in submittable state. Made the changes, looking at tha patch. Now the changes are submitted
Comment 7 saurav sarkar CLA 2010-10-04 06:06:10 EDT
Closing the bug as the patch has been submitted.