github.com/status-im/status-go@v1.1.0/cmd/populate-db/README.md (about) 1 ### How to build 2 3 You must have go installed. 4 Then you can run, from `cmd/populate-db` 5 6 ``` 7 go build 8 ``` 9 10 which should create a `populate-db` executable 11 12 ### How to run 13 ``` 14 ./populate-db --added-contacts 100 --contacts 200 --public-chats 100 --one-to-one-chats 40 --number-of-messages 2 --seed-phrase "your seed phrase" 15 ``` 16 17 18 The parameters are: 19 20 `added-contacts`: contacts you have added 21 `contacts`: number of "contacts" in the database, these are not added by you 22 `one-to-one-chats`: the number of one to one chats open 23 `public-chats`: the number of public chats 24 `number-of-messages`: the number of messages in each chat 25 `seed-phrase`: the seed phrase of the account to be created 26 27 The db will be created in the `./tmp` directory 28 29 ### How to import the db 30 31 1) Create an account in status-mobile 32 2) Login, copy the seed phrase 33 3) Create a db using this script using the seed phrase 34 4) Copy the db to the import directory 35 5) Import the database 36 6) Login 37 38 39 Note that the db is not complete, so the app might not be fully functioning, but it 40 should be good enough to test performance and probably migrations