Comments (4)
@Trisha-tech when user deletes, then cart should be deleted, but since user and cart are different collections, we can't do this
we can have order and cart list in the user schema whenever user deletes, then his order and cart details would be deleted. From this, we can reduce the database storage, it's easy to get details without co mplex queries and we can reduce times as well. if this idea works for your application Could you please assign this work?
Hello @Subhash23jan , Go for it
All the best
from onlinebooksales.
@Trisha-tech when user deletes, then cart should be deleted, but since user and cart are different collections, we can't do this
we can have order and cart list in the user schema whenever user deletes, then his order and cart details would be deleted. From this, we can reduce the database storage, it's easy to get details without co mplex queries and we can reduce times as well. if this idea works for your application Could you please assign this work?
Hello @Subhash23jan , A single document in MongoDB is limited to 16MB. This limit may be reached if a user has a lot of orders or items in their cart, and also You will need to locate and make any necessary updates to each user document that contains an order or cart item, such as when a product's price changes which makes it more complex .
@Trisha-tech We can use this strategy if you are not concerned about these possible problems with your application.
from onlinebooksales.
@Trisha-tech when user deletes, then cart should be deleted, but since user and cart are different collections, we can't do this
we can have order and cart list in the user schema whenever user deletes, then his order and cart details would be deleted. From this, we can reduce the database storage, it's easy to get details without co mplex queries and we can reduce times as well. if this idea works for your application Could you please assign this work?Hello @Subhash23jan , A single document in MongoDB is limited to 16MB. This limit may be reached if a user has a lot of orders or items in their cart, and also You will need to locate and make any necessary updates to each user document that contains an order or cart item, such as when a product's price changes which makes it more complex .
@Trisha-tech We can use this strategy if you are not concerned about these possible problems with your application.
Hello @SidharthaPaidi , Go for it
All the best
from onlinebooksales.
@Trisha-tech when user deletes, then cart should be deleted, but since user and cart are different collections, we can't do this
we can have order and cart list in the user schema whenever user deletes, his order and cart details would be deleted. From this, we can reduce the database storage, it's easy to get details without co mplex queries and we can reduce times as well. if this idea works for your application, Could you please assign it?
Hello @Subhash23jan , A single document in MongoDB is limited to 16MB. This limit may be reached if a user has a lot of orders or items in their cart, and you will also need to locate and make any necessary updates to each user document that contains an order or cart item, such as when a product's price changes which makes it more complex .
@Trisha-tech We can use this strategy if you are not concerned about these possible problems with your application.
@SidharthaPaidi
each order should be stored with price while saving and it will need lot of rework and i'm working on that. The user will have order id only and order collections will remain the same
currenlty i'm working on that and there are lot of improvements needed for cart as well.
from onlinebooksales.
Related Issues (20)
- [Feature Request]: apply kubernetes the app HOT 1
- [Bug]: FIX THESE bugs erros in ALL these 4 pages HOT 4
- [Bug]: Dark mode issue at login and signup page HOT 4
- Add A Preloader Matching to Website Theme i.e. Books HOT 2
- [Feature Request]: Add Legal Section and Copyright section with dynamic date functionality HOT 1
- [Feature Request]: Create and make 404 error page HOT 1
- [Bug]: Order section display issue HOT 1
- [Feature Request]: Properly Implementing the dark mode for whole website HOT 2
- Add the Cursor Trial Effect to the Website HOT 2
- Design A New Logo and A Fevicon for The Website HOT 1
- Create Terms and Conditions Page For the Website HOT 1
- Add Scroll to Top Button Functionality HOT 1
- Create "Our Contributors" Page for the website HOT 1
- Create Our Contributors Page
- BUG: The Contact Us Page is Not Responsive HOT 1
- Enhance Vertical Scrollbar to Match Website Design Theme HOT 1
- [Bug]: Missing spacing in WishList Page HOT 2
- Create Licensing Page Reflecting MIT License HOT 1
- Add Icons to the footer links HOT 1
- Add A News Letter Section HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onlinebooksales.