Does Airbyte support views in MongoDB?
# feedback-and-requests
j
Does Airbyte support views in MongoDB?
getting this error
u
`2021-12-03 181730 ERROR () LineGobbler(voidCall):82 - /usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/result.rb343in
raise_operation_failure': mapReduce on a view is not supported (166) (on myServer) (Mongo::Error::OperationFailure
u
Hi @Jeff Crooks I think you're not using our most recent MongoDB connector, could you access you sources configurations in the UI and check that you're using the
airbyte/source-mongodb-v2
image?
n
thats correct
u
i can tuse that connector due to performance reasons
u
separate open issue for that
u
😄
n
I'm afraid the Ruby client is trying to perform a mapReduce operation on the view, and map reduce operations on views are not allowed.
u
yep
u
the new one doing mapr as well or no?
u
i like 99% through this integration but the 1% s killing me 🙂
n
In v2 there's no specific processing for view and I do not see anything mapReduce related in our connector code. The read operation is quite straightforward:
Copy code
final MongoCursor<Document> cursor = collection
          .find(filter.orElse(new BsonDocument()))
          .batchSize(BATCH_SIZE)
          .cursor();
Could you try reading a view with our v2 connector and tell me it works for you 😄 ?
i cant get to the point to load data
u
schema discovery takes up to an hour and never returns
u
if i try a handful of times itll come back
u
Jeff I'll release a new version only using the 10k first records to discovery step today, I'll you know
c
@Joël Luijmes @[DEPRECATED] Marcos Marx Working great!!
u
and faster than the old connector
u
Only the discovery or the sync?