Shared indexes for every commit?
Answered
Hi,
I've been trying to use the shared indexes feature of IntelliJ but it appears as though an index has to be created for each project and each commit. Our projects have multiple commits per day, so this seems a bit pointless, as no one will ever use a shared index (as they are quickly obsolete). Am I right here, or have I misunderstood?
Nick
Please sign in to leave a comment.
Hello,
Shared indexes can be built for several VCS revisions in the file storage. Also they are built for the JDK and the libraries used in the project. Whenever IntelliJ IDEA needs to reindex your application, it will use the available shared indexes and will build local indexes for the rest of the project.
Do I need to export the shared indexes for a project every time I bump the Maven dependencies of my project? The project will have a new Git commit when this is pushed.
Hello,
Yes, shared indexes for the project are rebuild for each new dependency.
That's not my question. If a dependency changes in a project, and hence there is a new project git hash, do I need to export the shared indexes again?
Hello, dependency indexes are included in the shared indexes of the project, so they will be rebuilt and needed to be exported.