Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to retrieve single node from database
kaleemS
Is any body know,
How to retrieve only required metadata fields from database instead of all field in document object?
My current java program retrieving data from database using code
Query query = new Query(new AndConstraint(list.toArray(new Constraint[0])),
new SortField[]{new SortField("path", true),});
LSCSIterator iterator = client.getDocuments (query.toString (), 0, max);
which is returning all metadata fields of document but I need only one of them!!
Is there any way to specify which metadata field we want in output document?
Find more posts tagged with
Comments
Rick Poulin
I'm not intimately familiar with the Java API for LSCS yet, but there's a way to only get specific metadata items from the LSCS REST API, so I'd imagine there's a constraint type in the jAPI to do the same.
I'm assuming you're using this in a component though, so the only reason I can think of for your query is performance. Do you really have that many metadata items that you're seeing a performance degradation?
kaleemS
Yes, There are 20 metadata fields and I am wondering that's reason for slow query performance to retrieve data.
Or anyone know how to improve the query performance to retrieve the data using LSCS query? or any other solution to resolve the problem?
Chart Total.rptdesign