Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Dealing with Big Data

Subscribe

Get notified when there's activity on this post

This question has been flagged
createpostgresqlbig-response-datapandadataframe
2002 Views
Avatar
Muhammad Kamran

Hello,

I got a scenario where I have to read an excel file from the external storage of client on daily basis. That excel file contains at-least one million transactions. I have to create invoices and payments against those transactions on daily basis.

My Plan:

My plan of execution is that I'll read the file and convert it into a panda data-frame. Make changes in the name of columns so that they can match the technical names of the fields in odoo. After that I'll convert the data-frame in one list of dictionaries. And create records in my own model in odoo by postgresql create querry to hold all transactions as raw data.

In next step I'll run a crone job that will convert all those transaction into payments and invoices. i.e Use SQL create query to create invoices and payments.


Questions:

1). When I am reading data from excel should I set some limit. i.e that only 10,000 line should be executed in one go. Like create dataframe of 10,000 excel lines at first and then create records and move to next 10,000 line. I need a suggestion that should I go for a specific number of lines of read the whole file at once.

2). When I am creating the records in odoo. I am planing to use database create query and give list of dictionary as data stream to create records. Is that a right approach? The best way to create bulk records in odoo is through create query or any other way. Pls keep note of a fact that I have millions of transactions in excel file.

3). The approach of creating records as raw data first and then convert them to invoices and payments is a correct approach or should we go for direct creation of invoices and payments. If yes then how? It is depended on transaction type that we need to create a payment or invoice.

4). In case when I need to create invoice then surly I have to do that with create query of postgresql, How I can create and invoice with a query that will create invoice and its lines at the same time and quickly?

5). What would be a quick and reliable method to post bulk invoices and payments?

6). The odoo is hosted on odoo.sh and the version is 16. I am planning to add some workers for this process and will do this process in midnight when the system is not in use. Is there a facility provided by odoo which will allow me to assign a number of workers to a specific piece of code?


That might be possible that I haven't provided with exact information, if something is missing then pls ask me questions. i'll replay asap/

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Creating many records in a loop sometimes does not work
v8 create postgresql
Avatar
Avatar
2
Mar 20
6278
How to create empty rows in table and fill it with objects one by one
create postgresql self odoo8.0
Avatar
0
Mar 16
6373
How to Create new database from postgresql v7 on shell
database create postgresql v7
Avatar
Avatar
1
Mar 15
9060
Cannot create new database
database create postgresql odoo Odoo13.0
Avatar
Avatar
Avatar
2
Feb 21
9316
When Odoo 14 connects to PostgreSQL 15.7, the connection is idle but cannot be released
postgresql
Avatar
0
Feb 25
3866
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now