| |

VerySource

 Forgot password?
 Register
Search
View: 807|Reply: 8

Slow paging problem, urgent! !! !! !! !! !! !! !!

[Copy link]

2

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-5 10:00:01
| Show all posts |Read mode
Purpose: The existing system uses the Oracle database, and the program must import the data in the SqlServer database. When synchronizing, it is distinguished by X_ID. If the Oracle database exists, it does not need to be imported.

I implemented it this way: I used two Datasets to store Oracle data and SQLServer data, and then used a For loop to determine whether the A_ID in SqlServer exists in Oracle. If it exists, I deleted it from the DataSet, and finally got the recordset to be imported.

The problem is: because the data set in the resulting DataSet is very large, there are thousands, so paging in the DataGrid is particularly slow!

Please master how to deal with it?
Reply

Use magic Report

0

Threads

20

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-5-19 11:30:01
| Show all posts
Pagination in DataGrid?

Isn't the lz program imported automatically? Want to choose manually?
Reply

Use magic Report

0

Threads

26

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-5-19 20:00:01
| Show all posts
If you take advantage of the paging function that comes with Grid, thousands of pieces of data are unlikely to be much slower, unless you have problems with SQL statements, you can first run your SQL statements on the query analyzer to see the running time , Make another judgment, or you check your code and optimize it.
Reply

Use magic Report

2

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-5-19 22:30:02
| Show all posts
hawk1979:
I used the aspnetpage control, but I changed it and passed the DataSet directly, which is equivalent to paging directly in the Datagrid
To manually select records that are not to be imported
Reply

Use magic Report

2

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-5-19 23:45:01
| Show all posts
dydcool
Paginated is the DataSet
Reply

Use magic Report

0

Threads

20

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-5-29 01:45:01
| Show all posts
If it is just to guide the data, why do you want to paginate?
Am I understanding the wrong code?
Reply

Use magic Report

2

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-5-30 01:00:01
| Show all posts
It is imported data, but it must be displayed to the user first, and you can choose not to import records.
Reply

Use magic Report

0

Threads

22

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-6-1 10:30:01
| Show all posts
In fact, I think you should connect the two databases as a database, so that you can directly use the SQL statement to filter and import. For specific operations, look online. Haha, I haven't tried it. . .
Reply

Use magic Report

2

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-6-4 13:30:02
| Show all posts
One is sqlserver and the other is how to interconnect Oracle?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list