MySQL Forums
Forum List  »  Italian

Jconnector MySQL - Insert ottimizzato
Posted by: Eris Segala
Date: July 18, 2012 04:05AM

Buongiorno!
Sto facendo un porting da un db PostGres a MySql.
In Postgres esiste una classe PgConnection con relativo CopyManager fer fare l'insert ottimizzato (l'equivalente in SyBase è BCP (BulkCopy), mi pare.
In pratica ora il codice è
PGConnection underlyingconnection = null;
CopyManager copy = null;
//org.postgresql.copy.CopyManager
InputStream fileIn = null;
fileIn = new FileInputStream(newTempFile);
underlyingconnection = connection.unwrap(PGConnection.class); copy = underlyingconnection.getCopyAPI();

Sapete se esiste qualcosa di simile per MySQL nel suo J/Connector? Ho letto di LOAD_DATA ma non ho ben capito l'implementazione, e non mi sembra sia la stessa cosa..
GRAZIE.

Options: ReplyQuote


Subject
Views
Written By
Posted
Jconnector MySQL - Insert ottimizzato
2745
July 18, 2012 04:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.