Jump to content

Large MSSQL data set error


This topic is 2519 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi all,

Hope an FM SQL guru can help.

I am accessing a large list of tables and one table has ~500,000 records ~30 fields.

Using 3 or more key fields to create a smaller subset fails to show more than a few records either in a portal or gttr.

Other smaller dataset tables ~5000 return complete sets in the ~100's or less and very quickly!

I do have a built in report on the SQL side that returns subsets quickly but is in-flexible as to key fields and output format.

I see two ways forward I haven't tried.

1. Try a scripted find then copy to a native fm table.

2. Try using the same key fields as the built-in report and see if that provides results.

Thoughts? Suggestions? Comments?

TIA.

Edited by CoZiMan
Link to comment
Share on other sites

7 hours ago, CoZiMan said:

Using 3 or more key fields to create a smaller subset

 

Can you describe this a bit more?  What if you test with one key field, then with the second and see if the resulting record set is plausible.  If the resulting sets are ok with these two then the 3rd key may produce the logical data set but not the set that you expect...

Link to comment
Share on other sites

Ah. Good thought.

Testing now.

3 key relationship: minimal (incorrect) return.
2 key relationship: minimal but DIFFERENT (incorrect) return.
1 key relationship: minimal but DIFFERENT (incorrect) return.

Testing DIFFERENT SINGLE KEYS no joy.

Always a maximum of 3 records returned.

I am now noticing one other large record count table that has the same problem.

 

 

 

 

Screen Shot 2017-05-26 at 9.15.58 AM.png

Edited by CoZiMan
Link to comment
Share on other sites

Wim, I made sure I have the paid version. Re-added the user and system dsn.

When I add that table and go to view after three records I get timeouts and no data.

Hm.

Link to comment
Share on other sites

Set up a View in the MySQL and narrow your set first? Is that what you mean by

Quote

I do have a built in report on the SQL side that returns subsets quickly but is in-flexible as to key fields and output format.

What about this does not work?

beverly

Link to comment
Share on other sites

This topic is 2519 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.