Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What could cause the app to be so laggy? #200

Open
OB42 opened this issue Jul 2, 2023 · 1 comment
Open

What could cause the app to be so laggy? #200

OB42 opened this issue Jul 2, 2023 · 1 comment
Assignees

Comments

@OB42
Copy link

OB42 commented Jul 2, 2023

Hi,
I wanted to try out the project, set up everything, the only change I made was reactivating regular passwordless mail login.
I use a M1 macbook pro, the atlas mongodb is M0(the free version, should I get a paid one?)
I have multiple seconds of loading on every single page. Is that normal?it's so sluggish for what it actually does
Any advice would be appreciated, Thanks

@tima101
Copy link
Member

tima101 commented Jul 10, 2023

@OB42 Try local database instead of remote.


Once you install mongod and mongosh locally, here are some commands you may find useful:

sudo mongod --auth --port 27017 --dbpath /var/lib/mongodb

Create user and grant permission:

use admin
db.createUser(
  {
    user: "myUserAdmin",
    pwd: "123XXXXXXXXXXX",
    roles: [
	{ role: "root", db: "admin" },
	{ role: "userAdminAnyDatabase", db: "admin" },
	{ role: "readWriteAnyDatabase", db: "admin" }
    ]
  }
)
db.grantRolesToUser("myUserAdmin", ["root"]);
sudo mongosh --port 27017  --authenticationDatabase "admin" -u "myUserAdmin" -p

Connection string for MongoDB Compass and env var:

mongodb://myUserAdmin:123XXXXXXXXXXX@localhost:27017/?authSource=admin&readPreference=primary&ssl=false

Let me know how it goes.

@tima101 tima101 self-assigned this Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants