Realm handles existing databases

Asked 2 years ago, Updated 2 years ago, 72 views

I'm a beginner at Realm, so I'm sorry if this is a misguided question.

Currently, I convert the database created in Excel into csv, load it from SQLite, and run it with the iPhone app.However, since there are about 5000 lines of information in one database and String and Bool are designed to connect letters, images, sounds, etc., the operation is a little heavy, so I am thinking of introducing Realm.

Am I correct in understanding that if I use such existing Excel data in Realm, I will convert it to csv or json and then read it in Realm?Also, what is the best and most efficient format?

I read through the manual, but I didn't know how to import and display existing data like the phone book, so I asked you a question.

I'm sorry to trouble you, but I'd appreciate it if you could reply.Thank you for your cooperation.

ios swift realm

2022-09-30 19:05

1 Answers

Because it depends on the application requirements, the current information does not indicate that this is the best and most efficient method, but
Generally, as SQLite does now, it is good to convert Excel data to CSV, etc. so that it can be programmed and stored in Realm for use.

If the data is not updated at runtime, it is easy to import the data first with a simulator, attach the resulting file to the app, and load it directly to use it.


2022-09-30 19:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.