Learning Apache OpenWhisk by Michele Sciabarrà

Learning Apache OpenWhisk by Michele Sciabarrà

Author:Michele Sciabarrà
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2019-07-08T16:00:00+00:00


SELECT * FROM PERSON INNER JOIN COMPUTER ON COMPUTER.ID = PERSON.OWNER

Let’s do the same in CouchDB. Emitting multiple documents that contain the ids of the records to join is the recommended way to implement joins with views. You will leverage the following features:

You do not have to emit a single document in your view functions, so you will emit more than one: one for the main record and one for each joined record.

If a view has a field _id, you can use the option include_docs to expand it and include all the data from the referred-to document.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.