php - how to return the result of mongoDB query and gridFS data in a one go? -
i using mongodb , codeigniter php framework in project. dealing e-commerce website. using mongodb store product features , images of products. product details stored in collection , images stored in gridfs bucket product code. want return product details , images passing product code db. wrote 2 queries, 1 retrieving product details collection 1 images of product gridfs.
the 2 query results allocated 2 arrays.so iam not able combine result , make single araay pass view page.
i bugged this. please help..
i dont have experience in php, imho, question mixes apples bananas.
gridfs storage using bit different serialisation can cover documents on 16mb limit (the chunk size 255kb) , reflected in driver interface. mongo single document can 16mb, far images after serialisation fitting in bson limit, using standard collection act solution.
Comments
Post a Comment