Use uploadfs and gridfs with meteor + angular | Simple steps for image upload in meteor + angular

uploadfs

 we are going to discuss image or file upload in meteor with angular. image uploading is easy in the meteor. we will use uploadfs for image uploading. Uploadfs manage all things like file uploading, downloading, storing and copying etc. Uploadfs also use for file or image synchronization. we will use gridFS storage adapter. we can also crop images and set the size of any image. we will create a simple collection for file or image upload. Before start meteor + angular, we should have knowledge of angular.

steps for upload images

1- add uploadFS by run following command. uploadFS use for manage files.

 we need to install uploadFS for manage uploading, downloading, set the size of images and crop images. uploadFS is a popular package for file or image uploading. 

    meteor add jalik:ufs

Read More

Introduction to indexing in mongoDB | MongoDB Indexing

One of the powerful features of MongoDB is indexing and its wide and rich indexing functionality. the database index is a data structure that mainly improves the speed of data fetching operations. Indexing is used for search query sort its boost up performance without index collection will be scanned fully to get required data so it’s a very slow operation for the big amount of data that’s why indexing can increase read query and get only required data instead of full data. MongoDB has by default indexing on the _id field.
Mongo uses B-tree data structure. B-tree is a tree data structure that keeps data sorted and balanced. B-tree is optimized for systems that read and write large blocks of data.

Read More