full code review

There are currently 80.000 rows generated from the last wikidata dump. The default limit will be 7 as this will mostly be queried by the entityselector widget. The limit is increased to 500 in case the suggestions will be filtered by a string afterwards. At the moment qid1 is null in all cases as the code that uses values for suggestions is not ready (and will probably not be finished during the project). We made some measurements on the performance with and without index on a local mysql db: 
Here is the result with suggestions for differently sized input property-sets:
https://raw.githubusercontent.com/wiki/Wikidata-lib/PropertySuggester/img/performance.png
(labels: query time / number of properties)
with the current state of wikidata most queries will be for relatively small items:
https://raw.githubusercontent.com/wiki/Wikidata-lib/PropertySuggester/img/property-count.png
(labels: number properties per item / number of items)