Memory management of large data from oracle database

VIKASH JAISWAL

I am pulling out large data from oracle database using cx_oracle using below sample script:

from cx_Oracle import connect

TABLEDATA = []

con = connect("user/password@host")
curs = con.cursor()
curs.execute("select * from TABLE where rownum < 100000")

for row in curs:
    TABLEDATA.append([str(col) for col in list(row)])

curs.close()                        
con.close()

Problem with storing in list is that it ends up to about 800-900 mb of RAM usages. I know I can instead save this in file and not store in list but I am using this list to display table using QTABLEVIEW and QABSTRACTTABLE MODEL.

Is there any alternate or more effient way where I can minimise memory usage of storing this data and also use it to display my table?

VIKASH JAISWAL

I have tried multiple possobilities, I don't think qsqltablemodel works for me. Though it load data directly from database, as you keep scrolling down it loads more and more data in table and hence the memory usage keep on increasing.

What I think will ideally work is being able to load set number of rows in model. As you scroll down it loads new rows but also at the same time unloads what's already there. So at any point of time we only have set number of rows loaded in model.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Extract data from oracle database

From Dev

Large (UI)Image Memory Management

From Dev

Large (UI)Image Memory Management

From Dev

Grails GORM - ArrayIndexOutOfBoundsException when switching from in-memory data source to Oracle database

From Dev

select from large data with database or public variable

From Dev

Import specific by month data from a large database

From Dev

Whole Oracle database in memory

From Dev

Out of Memory:Transferring Large Data from Amazon Redshift to Pandas

From Dev

Objectively deleting data from Oracle database

From Dev

Displaying data in JTable from oracle database

From Dev

Import data from Oracle to Microsoft SQL database

From Dev

Angularjs - get data from oracle database

From Dev

python read() and write() in large blocks / memory management

From Dev

Memory Management On Large Image Collection Apps

From Dev

How to delete large amount of data from Oracle table in batches

From Dev

How to delete large amount of data from Oracle table in batches

From Dev

Sqoop error on data fetch from Oracle Database using Oracle wallet

From Dev

Creating dictionaries from large data sets in a spreadsheet or database file

From Dev

How to delete large data from Firebird SQL database

From Dev

How to delete large data from Firebird SQL database

From Dev

How to store data after doing a large pull from database? PHP

From Dev

how can I accelerate data migration from a large database in django

From Dev

Retrieve and interpret large amounts of data from a SQL Server database

From Dev

How best to efficiently extract data from a large SQLite database?

From Dev

Optimizing the SQL Query to get data from large amount MySQL database

From Dev

Need to pull large set of data from one database and insert into another

From Dev

Graph data structure memory management

From Dev

Graph data structure memory management

From Dev

Memory Management for Mapped Data in Shared Memory Segments

Related Related

  1. 1

    Extract data from oracle database

  2. 2

    Large (UI)Image Memory Management

  3. 3

    Large (UI)Image Memory Management

  4. 4

    Grails GORM - ArrayIndexOutOfBoundsException when switching from in-memory data source to Oracle database

  5. 5

    select from large data with database or public variable

  6. 6

    Import specific by month data from a large database

  7. 7

    Whole Oracle database in memory

  8. 8

    Out of Memory:Transferring Large Data from Amazon Redshift to Pandas

  9. 9

    Objectively deleting data from Oracle database

  10. 10

    Displaying data in JTable from oracle database

  11. 11

    Import data from Oracle to Microsoft SQL database

  12. 12

    Angularjs - get data from oracle database

  13. 13

    python read() and write() in large blocks / memory management

  14. 14

    Memory Management On Large Image Collection Apps

  15. 15

    How to delete large amount of data from Oracle table in batches

  16. 16

    How to delete large amount of data from Oracle table in batches

  17. 17

    Sqoop error on data fetch from Oracle Database using Oracle wallet

  18. 18

    Creating dictionaries from large data sets in a spreadsheet or database file

  19. 19

    How to delete large data from Firebird SQL database

  20. 20

    How to delete large data from Firebird SQL database

  21. 21

    How to store data after doing a large pull from database? PHP

  22. 22

    how can I accelerate data migration from a large database in django

  23. 23

    Retrieve and interpret large amounts of data from a SQL Server database

  24. 24

    How best to efficiently extract data from a large SQLite database?

  25. 25

    Optimizing the SQL Query to get data from large amount MySQL database

  26. 26

    Need to pull large set of data from one database and insert into another

  27. 27

    Graph data structure memory management

  28. 28

    Graph data structure memory management

  29. 29

    Memory Management for Mapped Data in Shared Memory Segments

HotTag

Archive