Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Slowness #9

Open
ArifADS opened this issue Oct 23, 2014 · 1 comment
Open

Slowness #9

ArifADS opened this issue Oct 23, 2014 · 1 comment

Comments

@ArifADS
Copy link

ArifADS commented Oct 23, 2014

I wonder why it takes 11 seconds to insert 250 rows with ~12 columns, or ~7 seconds a 80Kb File to String in one row.

Is there a better way to Insert/update?

@ryanfowler
Copy link
Owner

This seems unusual - I don't experience this slowness in my testing, Would you be able to provide the data you're trying to insert?

If you have some kind of loop that just calls SD.executeChange(...) for all 250 rows, be aware that this is open and close the database connection 250 times. If you have many inserts, I suggest to use the functions: SD.executeMultipleChanges(...) or SD.executeWithConnection(...).

In both cases, all changes will run on a single connection to the database.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants