Page 1 of 2

Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Sun Jan 26, 2014 12:42 am
by Jose6604143

I am trying to import my data from a MySQL database on Amazon into appery.io. The problem I am having is that when I import each table via csv format, appery is using it's own primary key instead of the one I have in my mysql database.

I have over 100 tables and 500k records. How will relationships be maintained?????


Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Sun Jan 26, 2014 2:05 am
by Igor

Hello,

Could you show us one of your DB table structure and some data fields.


Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Sun Jan 26, 2014 2:56 am
by Jose6604143

Sure, how?

Do you want a sql dump? Would that help? CSV export of some of the tables? I'd rather not attach here.


Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Sun Jan 26, 2014 3:00 am
by Igor

You can send CSV file example to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.


Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Sun Jan 26, 2014 3:04 am
by Jose6604143

I just sent you an email. Thanks!


Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Sun Jan 26, 2014 3:06 am
by Igor

Got it. We'll check it, but it can take some time.


Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Mon Jan 27, 2014 3:45 pm
by Kateryna Grynko

Hi Jose,

[quote:]How will relationships be maintained2[/quote]There is no way, we use noSQL database.
[quote:]appery is using it's own primary key[/quote]Do you mean "_id"? Yes, this is how Appery.io works.

I'd recommend you not to import MySQL database to our noSQL backend. Working with it will be pretty difficult. You'd better use MySQL database on a third-party service.


Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Mon Jan 27, 2014 3:59 pm
by Jose6604143

Katya,

When you say third party service, do you mean I should continue using Amazon RDS and somehow connect my appery.io app to it?

How so?

Thanks,

Jose


Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Mon Jan 27, 2014 4:43 pm
by Kateryna Grynko

Jose,

Amazon or any other. This service must support REST API.


Importing from MySQL DB on Amazon - Why can't I maintain the existing primary key?????

Posted: Mon Jan 27, 2014 5:27 pm
by Jose6604143

Thanks Katya,

I noticed the tools for creating and managing databases are rather crude. You can basically create collections and corresponding documents and that's it.

Does appery.io have or plan to have some kind of model designer?

Take a look at Wakanda's model designer and you will get an idea of what I'm talking about.

http://www.wakanda.org/features?qt-wa... Image