Hi all.
I wanted to show all the content instances of a content type assigned to a selected site. What is the best way to do this query??.
Thanks!!
This code is too slowly. What could be the problem?:
ContentInstanceWhereClause wClause = new ContentInstanceWhereClause();
wClause.setMatchAny(true);
while (siteChannelsIterator.hasNext()) {
ContentInstanceWhereClause wClause2 = new ContentInstanceWhereClause();
wClause2.setMatchAny(true);
wClause2.checkChannel(ObjectQueryOp.EQUAL, new ChannelRef(
(Channel) siteChannelsIterator.next()));
query.addWhereClause(wClause2);
}
long queryTime = System.currentTimeMillis();
IPagingList servicesPagingList = QueryManager.execute(query);