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

Bug 325827

Summary: [Query2] Performance improvements in Indexing
Product: [Modeling] EMF Reporter: saurav sarkar <saurav.sarkar1>
Component: Query2Assignee: Project Inbox <emf.query2-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: animesh143
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Prevents the problem of Full build of Workspace everytime the IDE is started. wayne.beaton: iplog+

Description saurav sarkar CLA 2010-09-21 06:56:08 EDT
Build Identifier: 

This came out from the https://bugs.eclipse.org/bugs/show_bug.cgi?id=323820.
Please see the last comment i.e.

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


This part to be solved in this bug.

Reproducible: Always
Comment 1 Animesh Kumar CLA 2010-12-10 03:09:41 EST
Created attachment 184922 [details]
Prevents the problem of Full build of Workspace everytime the IDE is started.

To prevent full build of workspace, everytime the IDE is started, dumping and loading of indices was activated.
The Scenarios which were kept in mind while creating this patch were:-
1)A fresh workspace is created and no resources exist:- Indexing is not required in such a case.
2) Resources exist and IDE is shut down normally:- The indices are dumped and then at IDE start they are loaded.
3) Resources exist and IDE is shut down improperly:- The indices are not dumped. At the start of IDE a Full Build is done to build the indices. Since this is rare scenario and also due improper shutdown workspace has to be refreshed and hence Full build is needed.
4) Clean Build:- All resources will be reindexed.
Comment 2 saurav sarkar CLA 2011-01-06 23:53:17 EST
Patch submitted.
Hence closing the bug