I have a table with the following schema:
CREATE TABLE LoanEvents (
    Id integer primary key not null, 
    LoanId integer not null default '0', 
    Period integer not null default '0',
    ... more data
    )
it has an index defined:
CREATE UNIQUE INDEX LoanEvents_LoanId_Period
    on LoanEvents(LoanId,Period)
I am running a complex query with joins on this table, and I am getting the message:
SQLite warning (284): automatic index on LoanEvents(LoanId)
Why do I get this warning, when there is already an index with LoanId as the first key?
Is there anything I can do to get rid of the warning, without adding an unnecessary index?
 
    