Limit on number of bytes or items returned from the Reduce function? or, How do I do a UNION DISTINCT of array elements?

Thank you, Gerald. I went through the N1QL tutorial last night, and the SQL-like implementation looks pretty great, actually, assuming performance and scalability holds up! I will throw together a Couchbase 4.0 Beta server here and see if we can figure out what syntax to use, or I will reach out to you. I appreciate the assistance.