Project

General

Profile

Idea #14374

Updated by Peter Amstutz over 5 years ago

Implemented in controller. 

 # Distribute query to each cluster in the federation. 
 # Collect responses, collate by order and truncate to response item limit 
 # Construct a "page token" which consists of the original filters plus additional information needed to get remaining unseen items on each cluster 
 # Respond with object list and page token 
 # Subsequent requests should only use the page token 

 Query parameters: 

 * allow partial results 
 ** when true, if a query to a remote cluster fails, return a response with that cluster stripped out and an additional "warning" field mentioning there was a problem 
 ** when false, if any query to a remote cluster fails, the whole request fails 
 * timeout 
 ** how long to wait for a result from one of the remote clusters 

 Query considerations: Considerations: 

 * Only order on certain columns? Limit which columns can be sorted on?    Such as only uuid or modified_at 
 * ? 

 If "select" is specified, must include "uuid" ? 
 * Cannot have 

 Do not support "offset" 
 * 

 Must be "count=none" 
 * 

 Must be "distinct=false" 

Back