Merge branch 'hotfix-fastseq_assign'

Fix fastseq_assign on GP when the relation is empty.
Create a view instead of change the original table
Update SQLInferenceDataStore.scala
Update SQLInferenceDataStore.scala
Update SQLInferenceDataStore.scala
Update SQLInferenceDataStore.scala
Update SQLInferenceDataStore.scala
Update SQLInferenceDataStore.scala
Update SQLInferenceDataStore.scala
Use join instead of a separate view
Add comments
Add IF EXISTS just in case it makes any difference, but it shouldn't.
Comment out two lines that do not seem to be needed. I'll remove them if nothing changes
Undo adding of IF EXISTS, it doesn't make the difference and we know the view exists.
Remove commented out lines. They don't seem to be needed anyway.
Fixed timeout MySQL grounding query

The bug was because a query in inference run for too long.

Created an index on the id column of type table to optimize MySQL join,
since MySQL uses BNLJ. It's important to tailor join queries for MySQL
as they don't have efficient join algorithms. Specifically, we should
create indexes on join condition columns (at least in MySQL
implementation).
Merge branch 'hotfix-schemachange' into develop

Avoid messing up the schema for the user