Getting Two and More Document with same Document id

Sync Gateway stores a number of internal documents in the bucket with the _sync prefix. These documents shouldn’t be modified, as they are required for replication. Any application processing against a mobile-enabled bucket needs to account for these documents. Typically this is just a matter of filtering these from N1QL queries, as outlined in the previous response.