RedGreenCode / UWP

Universal Windows Platform (UWP) code examples. See https://www.redgreencode.com/uwp-c-xaml-mvvm-ef-sqlite/.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Insertion Query Slow

urjapatel opened this issue · comments

On Testing your sample code referring project UWP-MVVM-EF-SQLite-2,
on calling db.SaveChanges() query is slow, which takes 200-300 milliseconds to save single record.
How to make faster insertion queries?

My sample code integrates a few different technologies (C#, UWP, EF, SQLite). To narrow down the perf issue, you could try isolating just the SQLite call. For example, try an insert like https://stackoverflow.com/a/19489736/4803. If it runs in about the same time, then the bottleneck is either C# or SQLite. At that point you could try calling SQLite from some other environment, like Java.

@RedGreenCode I tried inserting, mentioned in given link https://stackoverflow.com/a/19489736/4803, still shows the same results. Can you provide a sample for Java?