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

  • Home
  • SEARCH
  • 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 4259254
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:45:33+00:00 2026-05-21T05:45:33+00:00

I have a situation where I need to store some data that just won’t

  • 0

I have a situation where I need to store some data that just won’t …really fit into a database table. It is a little too abstract, and I’ve not enough knowledge to piecemeal it in such a way that it could be broken into tables and columns. The object in question is a System.Linq.Expressions.Expression<T>.

I have discovered a means of serializing such to xml using MetaLinq. and it works pretty well, albeit the xml it generates is excessively obese, I somewhat expected this much from something as complicated as an Expression. A modest expression turns out to around 19 kb.

So my thought was to use gzip compression on the file. This works well, it saves it to about 2 kb.

So then, my actual question is this : is it bad practice or ‘dangerous’ practice to basically use a table column to reference a filename for deserialization for an object? Like I would have a table for expressions, and it would have a filename, when that expression was called it would perform the gzip decompression, deserialize it, and return the object.

This seems like the ideal solution but it requires a lot of File I/O and a lot of various compression/zipping/serialization. I’m wondering if I could get the opinion of more experienced database admins out there. I am using Fluent nHibernate as my ORM mapper.

MetaLinq on codeplex

  • 1 1 Answer
  • 0 Views
  • 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-21T05:45:34+00:00Added an answer on May 21, 2026 at 5:45 am

    Depends on the size of the data.

    Sql has an XML data type for table columns now. So you could deserialize the object and then insert the whole object in the column again depending on size.

    But if you must use the file system I would store a path and the file name in the column.
    In your programs app.config keep the root of the drive like \\MyDrive or d:\

    That way if information moves, just change the app config as long as the folder/file structure stays the same.

    Edit:
    Along with NerdFury suggestion you could you a binary serializer if you do not need to “see” the data in the database. XML serialization at least makes it readable

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

Sidebar

Related Questions

We have a situation where we need to display data from a database in
I have a situation where I need to store a general piece of data
Did you ever have the following situation: you need to store information, but a
I have a situation where I need to notify some users when something in
Here's the situation: I have a massive object that needs to be loaded into
Assuming there are multiple data entities that need to be saved within a database
We have a situation in our product where for a long time some data
I've run into a situation where I have binary data (created using os.urandom(BLOCK_SIZE) )
I have a desktop (winforms) application that uses a Firebird database as a data
I have situation where I need to change the order of the columns/adding new

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.