Posted
on May 17, 2009
(permalink)
Hi,
OK, it works but with one important notice: this dummy declared primary key must be a unique key in this view. Otherwise we get something like this:
- there are 3 records in the view (MyInt, MyString): (1, "A"), (1, "B"), (1, "C")
- we ask for all records with MyInt = 1
- we get 3 records in the result; but all of them are the same record - due to the caching mechanism, of course
It's enough to declare a primary key containing both MyInt and MyString (as dummy as the previous one) to get the proper result.
So: it works but I hope it is a temporary, very temporary :-) solution.
Regards
Tomasz