jmac11 / googlecloudsql

Automatically exported from code.google.com/p/googlecloudsql
0 stars 0 forks source link

JSON API feature request - import/export async:false #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In v1beta3 of the API, a request to export or import a database returns 
immediately (async operation). Although this is desirable in some cases, there 
are common use cases (templates) where this is a problem. For example, an 
automated process that exports some data from one database and then imports 
that data into another database, and then possibly further performs operations 
on the imported data (the import needs to be complete for this to work of 
course).

The problem:
The async operation of the import/export make moving data around more difficult 
than it needs to be. i.e. I can't import the file until the export finishes, 
and i can't work on the imported data until the import finishes.

Typical scenarios:
copying a template database to a production system.

Proposed API extension:
add an optional parameter to the import/export API in the form of: "async : 
true"
The default could be true to maintain compatibility with the current API, and 
if specified as "async:false" the import and export methods would block until 
complete.

Original issue reported on code.google.com by rhd...@gmail.com on 3 Jun 2014 at 10:02

GoogleCodeExporter commented 9 years ago
I have forwarded this request to the engineering team. We will update this 
issue with any progress updates and a resolution.

Best regards, Vaqar

Original comment by vshe...@google.com on 27 Apr 2015 at 7:14