Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323820 - [Query2] Clean build needs to be done for Index building
Summary: [Query2] Clean build needs to be done for Index building
Status: RESOLVED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Query2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 09:23 EDT by saurav sarkar CLA
Modified: 2011-05-17 18:01 EDT (History)
1 user (show)

See Also:


Attachments
Patch for the fiix (5.71 KB, patch)
2010-09-27 06:30 EDT, saurav sarkar CLA
no flags Details | Diff
Fix for the bug (5.49 KB, text/plain)
2010-09-27 08:41 EDT, saurav sarkar CLA
wayne.beaton: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
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.