Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4340780
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:23:43+00:00 2026-05-21T11:23:43+00:00

We have a data warehouse with denormalized tables ranging from 500K to 6+ million

  • 0

We have a data warehouse with denormalized tables ranging from 500K to 6+ million rows. I am developing a reporting solution, so we are utilizing database paging for performance reasons. Our reports have search criteria and we have created the necessary indexes, however, performance is poor when dealing with the million(s) row tables. The client is set on always knowing the total records, so I have to fetch the data as well as the record count.

Are there any other things I can do to help with performance? I’m not the MySQL dba and he has not really offered anything up, so I’m not sure what he can do configuration wise.

Thanks!

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T11:23:44+00:00Added an answer on May 21, 2026 at 11:23 am

    If you partition the large tables and store the parts on different servers, than your query will run faster.

    see: http://dev.mysql.com/doc/refman/5.1/en/partitioning.html

    Also note that using NDB tables you can use HASH keys that get looked up in O(1) time.

    For the number of lines you can keep a running total in a separate table and update that. For example in a after insert and after delete trigger.
    Although the trigger will slow down deletes/inserts this will be spread over time. Note that you don’t have to keep all totals in one row, you can store totals per condition. Something like:

    table    field    condition    row_count
    ----------------------------------------
    table1   field1   cond_x       10
    table1   field1   cond_y       20
    
    select sum(row_count) as count_cond_xy 
    from totals where field = field1 and `table` = table1 
    and condition like 'cond_%';
    //just a silly example you can come up with more efficient code, but I hope
    //you get the gist of it.
    

    If you find yourself always counting along the same conditions, this can speed your redesigned select count(x) from bigtable where ... up from minutes to instantly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working rearchitecting a reporting/data warehouse type database. We currently have a table that
We do have a small data warehouse in PostgreSQL database and I have to
I have a number of data files to process from a data warehouse that
I have implemented delta detection while loading data warehouse from transaction systems using an
We have a large POSTGRESQL transactional database (around 70 million rows in all), and
I am managing a data warehouse. I have several dimension tables most of which
I have a complex Task flow that in general creates data warehouse content from
I have got a normalized transactional database. I am setting up a data warehouse
I'm developing a data warehouse and have come up against a problem I'm not
I have an OLTP database, and am currently creating a data warehouse. There is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.