Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reducing Database Rows

Featured Replies

Hey,

 

I have a tool that produces around 30-100 results every time it's run. Currently I have it stored as individual rows (so 30-100 rows) and group the results by date. I need some advice...

 

Would you, instead of having say 100 rows, have a single row and have the 100 results in a single column then handle the data with PHP (instead of mysql)? That would reduce the amount of rows made but I can see an issue with ordering the arrays (theres multiple arrays with different types of data).

 

Or is it not an issue? Lots of rows is acceptable?

 

Sorry if this doesn't make much sense. I'm just wondering what the "fors" and "againsts" are for having too many rows...

 

Cheers

Personally I find that keeping logs of data as individual items. You can always create "smart" queries that will get your data as you want it in preparation for PHP processing. As you say you can group your data with a query. Its much easier looping through all your results, and collating your data with php code when SQL can do it for you

Personally I find that keeping logs of data as individual items. You can always create "smart" queries that will get your data as you want it in preparation for PHP processing. As you say you can group your data with a query. Its much easier looping through all your results, and collating your data with php code when SQL can do it for you

 

As long as you're indexing the correct columns, the number of rows shouldn't really matter.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.