Re: Query Optimization
Key-value storage is extremely flexible, but hopelessly un-scalable.
The query you are looking for is really ugly, and must be programmatically generated:
SELECT ...
FROM tbl a
JOIN tbl b ON a.ID = b.ID
JOIN tbl c ON a.ID = c.ID
WHERE a.Field_id = 311 AND a.value = 'Toyota'
AND b.Field_id = 309 AND b.value = 'Celica'
AND c.Field_id = 310 AND c.value = '1993'
;
(Sorry, that's not complete.)
Subject
Views
Written By
Posted
3927
June 15, 2009 06:07AM
2212
June 16, 2009 03:43AM
Re: Query Optimization
2049
June 16, 2009 10:40PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.