Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.9.5
-
None
Description
Using TinySocial, why doesn't the following function and query
create function userJoinMessage(){
select u.id,u.name, m.* from
GleambookUsers u, GleambookMessages m
where u.id = m.authorId
};
select t.name, t.message
from userJoinMessage() t
where t.name like 'M%';
have the same query plan as
select u.name, m.message from
GleambookUsers u, GleambookMessages m
where u.id = m.authorId
and u.name like 'M%';
in which the name predicate is pushed below the join?